Skip to content

Commit cfd2b99

Browse files
Add missing licenses & update build script for Central release (#41)
* Add licenses header to sources which lack it. * pom and artifacts match central repository requirements
1 parent 04beb35 commit cfd2b99

File tree

85 files changed

+1233
-26
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+1233
-26
lines changed

.travis.yml

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
#
2+
# Copyright 2015-2018 the original author or authors.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
---
117
language: java
218
jdk:
319
- oraclejdk8

AUTHORS

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
benjchristensen = Ben Christensen <[email protected]>
2+
mostroverkhov = Maksym Ostroverkhov <[email protected]>
3+
robertroeser = Robert Roeser <[email protected]>

build.gradle

+51-12
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ subprojects {
2727
apply plugin: 'kotlin'
2828
apply plugin: 'maven-publish'
2929

30-
group = 'io.rsocket.kotlin'
31-
version = '0.9-SNAPSHOT'
32-
3330
test {
3431
testLogging {
3532
events "failed"
@@ -69,17 +66,59 @@ subprojects {
6966
testImplementation "org.slf4j:slf4j-log4j12:1.7.25"
7067
}
7168

72-
publishing {
73-
publications {
74-
maven(MavenPublication) {
75-
from components.java
69+
plugins.withType(MavenPublishPlugin) {
70+
publishing {
71+
publications {
72+
maven(MavenPublication) {
73+
groupId 'io.rsocket.kotlin'
7674

77-
artifact sourcesJar {
78-
classifier "sources"
79-
}
75+
from components.java
76+
77+
artifact sourcesJar {
78+
classifier "sources"
79+
}
8080

81-
artifact javadocJar {
82-
classifier "javadoc"
81+
artifact javadocJar {
82+
classifier "javadoc"
83+
}
84+
85+
pom.withXml {
86+
asNode().':version' + {
87+
resolveStrategy = DELEGATE_FIRST
88+
89+
name project.name
90+
description project.description
91+
url 'http://rsocket.io'
92+
93+
licenses {
94+
license {
95+
name 'The Apache Software License, Version 2.0'
96+
url 'http://www.apache.org/license/LICENSE-2.0.txt'
97+
}
98+
}
99+
100+
developers {
101+
102+
developer {
103+
id 'mostroverkhov'
104+
name 'Maksym Ostroverkhov'
105+
106+
}
107+
108+
developer {
109+
id 'robertroeser'
110+
name 'Robert Roeser'
111+
112+
}
113+
}
114+
115+
scm {
116+
connection 'scm:git:https://github.com/rsocket/rsocket-kotlin.git'
117+
developerConnection 'scm:git:https://github.com/rsocket/rsocket-kotlin.git'
118+
url 'https://github.com/rsocket/rsocket-kotlin'
119+
}
120+
}
121+
}
83122
}
84123
}
85124
}

gradle.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#
1616

1717
release.scope=patch
18-
release.version=0.9-SNAPSHOT
18+
version=0.9-SNAPSHOT
1919
org.gradle.parallel=false
2020
org.gradle.configureondemand=false
2121

rsocket-core/build.gradle

+2
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@ compileKotlin {
2525
compileTestKotlin {
2626
kotlinOptions.jvmTarget = "1.6"
2727
}
28+
29+
description = "Core functionality for the RSocket-kotlin library"

rsocket-core/src/main/kotlin/io/rsocket/kotlin/ClientOptions.kt

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2015-2018 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package io.rsocket.kotlin
218

319
class ClientOptions {

rsocket-core/src/main/kotlin/io/rsocket/kotlin/Duration.kt

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2015-2018 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package io.rsocket.kotlin
218

319
import java.util.concurrent.TimeUnit

rsocket-core/src/main/kotlin/io/rsocket/kotlin/InterceptorOptions.kt

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2015-2018 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package io.rsocket.kotlin
218

319
import io.rsocket.kotlin.interceptors.DuplexConnectionInterceptor

rsocket-core/src/main/kotlin/io/rsocket/kotlin/KeepAlive.kt

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2015-2018 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package io.rsocket.kotlin
218

319
/**

rsocket-core/src/main/kotlin/io/rsocket/kotlin/KeepAliveData.kt

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2015-2018 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package io.rsocket.kotlin
218

319
import java.nio.ByteBuffer

rsocket-core/src/main/kotlin/io/rsocket/kotlin/KeepAliveOptions.kt

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2015-2018 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package io.rsocket.kotlin
218

319
import io.rsocket.kotlin.internal.EmptyKeepAliveData

rsocket-core/src/main/kotlin/io/rsocket/kotlin/LeaseGranter.kt

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2015-2018 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package io.rsocket.kotlin
218

319
import io.reactivex.Completable

rsocket-core/src/main/kotlin/io/rsocket/kotlin/LeaseOptions.kt

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2015-2018 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package io.rsocket.kotlin
218

319
/**

rsocket-core/src/main/kotlin/io/rsocket/kotlin/LeaseSupport.kt

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2015-2018 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package io.rsocket.kotlin
218

319
import io.rsocket.kotlin.internal.lease.LeaseConnection

rsocket-core/src/main/kotlin/io/rsocket/kotlin/LeaseWatcher.kt

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2015-2018 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package io.rsocket.kotlin
218

319
import io.reactivex.Flowable

rsocket-core/src/main/kotlin/io/rsocket/kotlin/MediaType.kt

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2015-2018 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package io.rsocket.kotlin
218

319
interface MediaType {

rsocket-core/src/main/kotlin/io/rsocket/kotlin/MediaTypeOptions.kt

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2015-2018 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package io.rsocket.kotlin
218

319
/**

rsocket-core/src/main/kotlin/io/rsocket/kotlin/RSocketOptions.kt

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2015-2018 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package io.rsocket.kotlin
218

319

rsocket-core/src/main/kotlin/io/rsocket/kotlin/exceptions/ChannelRequestException.kt

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2015-2018 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package io.rsocket.kotlin.exceptions
218

319
class ChannelRequestException(message: String, cause: Throwable)

0 commit comments

Comments
 (0)