|
1 | 1 | plugins { |
2 | 2 | id "java-library" |
3 | 3 | id "java-gradle-plugin" |
4 | | - id "com.gradle.plugin-publish" version "2.0.0" |
5 | | - id "pl.allegro.tech.build.axion-release" version "1.16.1" |
6 | | - id "com.vanniktech.maven.publish" version "0.26.0" |
| 4 | + id "com.gradle.plugin-publish" version "2.1.1" |
| 5 | + id "pl.allegro.tech.build.axion-release" version "1.21.1" |
| 6 | + id "com.vanniktech.maven.publish" version "0.36.0" |
7 | 7 | } |
8 | 8 |
|
9 | 9 | scmVersion { tag { prefix.set("") } } |
10 | 10 |
|
11 | 11 | project.version = scmVersion.version |
12 | 12 | project.group = 'de.esoco.gwt' |
13 | 13 |
|
14 | | -java { |
15 | | - sourceCompatibility = JavaVersion.VERSION_1_8 |
16 | | - targetCompatibility = JavaVersion.VERSION_1_8 |
17 | | -} |
18 | | - |
19 | 14 | repositories { |
20 | 15 | mavenCentral() |
21 | 16 | } |
22 | 17 |
|
23 | 18 | dependencies { |
24 | 19 | implementation gradleApi() |
25 | | - implementation "com.google.guava:guava:23.5-jre" |
26 | | - testImplementation 'org.spockframework:spock-core:1.3-groovy-2.5', gradleTestKit() |
| 20 | + implementation "com.google.guava:guava:33.6.0-jre" |
| 21 | + testImplementation 'org.spockframework:spock-core:2.4-groovy-5.0', gradleTestKit() |
| 22 | +} |
| 23 | + |
| 24 | +tasks.withType(JavaCompile).configureEach { |
| 25 | + options.compilerArgs += ['-Xlint:deprecation'] |
| 26 | +} |
| 27 | + |
| 28 | +tasks.withType(Javadoc).configureEach { |
| 29 | + options.addStringOption('Xdoclint:none', '-quiet') |
27 | 30 | } |
28 | 31 |
|
29 | 32 | processResources { |
30 | | - duplicatesStrategy(DuplicatesStrategy.EXCLUDE) |
| 33 | + duplicatesStrategy = DuplicatesStrategy.EXCLUDE |
31 | 34 | } |
32 | 35 |
|
33 | 36 | publishing { |
34 | 37 | publications { |
35 | 38 | pluginPublication(MavenPublication) { |
36 | 39 | from components.java |
37 | | - groupId project.group |
38 | | - artifactId project.name |
39 | | - version project.version |
| 40 | + groupId = project.group |
| 41 | + artifactId = project.name |
| 42 | + version = project.version |
40 | 43 | } |
41 | 44 | } |
42 | 45 | } |
|
0 commit comments