|
1 | 1 | plugins { |
2 | | - id 'java' |
3 | | - id 'java-library' |
| 2 | + id 'org.jetbrains.kotlin.jvm' |
4 | 3 | id 'application' |
5 | 4 | id 'com.jfrog.bintray' version '1.8.5' |
6 | 5 | id 'maven-publish' |
7 | | - id 'org.jetbrains.kotlin.jvm' |
8 | | - id 'com.avast.gradle.docker-compose' version "0.13.4" |
| 6 | + id "org.jetbrains.dokka" |
| 7 | + id 'com.avast.gradle.docker-compose' version "0.14.0" |
9 | 8 | } |
10 | 9 |
|
11 | 10 | group 'org.radarbase' |
12 | | -version '1.1.5' |
| 11 | +version '1.1.6' |
13 | 12 | mainClassName = 'org.radarbase.output.Application' |
14 | 13 |
|
15 | | -sourceCompatibility = '1.8' |
16 | | -targetCompatibility = '1.8' |
17 | | - |
18 | 14 | ext { |
19 | 15 | moduleDescription = 'RADAR-base output restructuring' |
20 | 16 | website = 'https://radar-base.org' |
21 | 17 | githubRepoName = 'RADAR-base/Restructure-HDFS-topic' |
22 | 18 | githubUrl = "https://github.com/${githubRepoName}" |
23 | 19 | issueUrl = "${githubUrl}/issues" |
24 | 20 |
|
25 | | - avroVersion = '1.10.0' |
26 | | - jacksonVersion = '2.11.3' |
| 21 | + avroVersion = '1.10.1' |
| 22 | + jacksonVersion = '2.12.0' |
27 | 23 | hadoopVersion = '3.3.0' |
28 | 24 | jCommanderVersion = '1.78' |
29 | 25 | almworksVersion = '1.1.2' |
30 | | - junitVersion = '5.6.2' |
31 | | - minioVersion = '7.1.4' |
32 | | - jedisVersion = '3.3.0' |
| 26 | + junitVersion = '5.7.0' |
| 27 | + minioVersion = '8.0.3' |
| 28 | + jedisVersion = '3.4.0' |
33 | 29 | slf4jVersion = '1.7.30' |
34 | | - azureStorageVersion = '12.8.0' |
| 30 | + azureStorageVersion = '12.9.0' |
35 | 31 | } |
36 | 32 |
|
37 | 33 | repositories { |
@@ -80,21 +76,15 @@ dependencies { |
80 | 76 | testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: junitVersion |
81 | 77 | testImplementation group: 'org.hamcrest', name: 'hamcrest-all', version: '1.3' |
82 | 78 | testImplementation "com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0" |
83 | | -} |
84 | 79 |
|
85 | | -compileKotlin { |
86 | | - kotlinOptions { |
87 | | - jvmTarget = "1.8" |
88 | | - } |
| 80 | + dokkaHtmlPlugin("org.jetbrains.dokka:kotlin-as-java-plugin:$kotlinVersion") |
89 | 81 | } |
90 | | -compileTestKotlin { |
91 | | - kotlinOptions { |
92 | | - jvmTarget = "1.8" |
93 | | - } |
94 | | -} |
95 | | -compileIntegrationTestKotlin { |
| 82 | + |
| 83 | +tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach { |
96 | 84 | kotlinOptions { |
97 | | - jvmTarget = "1.8" |
| 85 | + jvmTarget = "11" |
| 86 | + apiVersion = "1.4" |
| 87 | + languageVersion = "1.4" |
98 | 88 | } |
99 | 89 | } |
100 | 90 |
|
@@ -152,6 +142,7 @@ task integrationTest(type: Test) { |
152 | 142 | showStandardStreams = true |
153 | 143 | setExceptionFormat("full") |
154 | 144 | } |
| 145 | + outputs.upToDateWhen { false } |
155 | 146 | shouldRunAfter test |
156 | 147 | } |
157 | 148 |
|
@@ -186,18 +177,17 @@ task sourcesJar(type: Jar, dependsOn: classes) { |
186 | 177 | manifest.from sharedManifest |
187 | 178 | } |
188 | 179 |
|
189 | | -task javadocJar(type: Jar, dependsOn: javadoc) { |
190 | | - archiveClassifier.set('javadoc') |
191 | | - from javadoc.destinationDir |
192 | | - manifest.from sharedManifest |
| 180 | +task dokkaJar(type: Jar, dependsOn: dokkaJavadoc) { |
| 181 | + archiveClassifier.set("javadoc") |
| 182 | + from("$buildDir/dokka/javadoc/") |
193 | 183 | } |
194 | 184 |
|
195 | 185 | publishing { |
196 | 186 | publications { |
197 | 187 | mavenJar(MavenPublication) { |
198 | 188 | from components.java |
199 | 189 | artifact sourcesJar |
200 | | - artifact javadocJar |
| 190 | + artifact dokkaJar |
201 | 191 | pom { |
202 | 192 | url = githubUrl as String |
203 | 193 | description = moduleDescription |
@@ -261,5 +251,5 @@ bintray { |
261 | 251 | } |
262 | 252 |
|
263 | 253 | wrapper { |
264 | | - gradleVersion '6.6.1' |
| 254 | + gradleVersion '6.7.1' |
265 | 255 | } |
0 commit comments