diff options
Diffstat (limited to 'build.gradle')
| -rw-r--r-- | build.gradle | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/build.gradle b/build.gradle index 08ccffe8..58cb0bad 100644 --- a/build.gradle +++ b/build.gradle | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | plugins { | 1 | plugins { |
| 2 | id 'maven-publish' | 2 | id 'maven-publish' |
| 3 | id 'com.github.johnrengelman.shadow' version '8.1.1' apply false | ||
| 3 | } | 4 | } |
| 4 | 5 | ||
| 5 | subprojects { | 6 | subprojects { |
| @@ -7,9 +8,6 @@ subprojects { | |||
| 7 | apply plugin: 'maven-publish' | 8 | apply plugin: 'maven-publish' |
| 8 | apply plugin: 'checkstyle' | 9 | apply plugin: 'checkstyle' |
| 9 | 10 | ||
| 10 | sourceCompatibility = JavaVersion.VERSION_17 | ||
| 11 | targetCompatibility = JavaVersion.VERSION_17 | ||
| 12 | |||
| 13 | repositories { | 11 | repositories { |
| 14 | mavenLocal() | 12 | mavenLocal() |
| 15 | mavenCentral() | 13 | mavenCentral() |
| @@ -17,8 +15,8 @@ subprojects { | |||
| 17 | } | 15 | } |
| 18 | 16 | ||
| 19 | dependencies { | 17 | dependencies { |
| 20 | implementation 'com.google.guava:guava:30.1.1-jre' | 18 | implementation 'com.google.guava:guava:32.1.2-jre' |
| 21 | implementation 'com.google.code.gson:gson:2.8.7' | 19 | implementation 'com.google.code.gson:gson:2.10.1' |
| 22 | 20 | ||
| 23 | testImplementation 'junit:junit:4.13.2' | 21 | testImplementation 'junit:junit:4.13.2' |
| 24 | testImplementation 'org.hamcrest:hamcrest:2.2' | 22 | testImplementation 'org.hamcrest:hamcrest:2.2' |
| @@ -29,13 +27,10 @@ subprojects { | |||
| 29 | 27 | ||
| 30 | version = version + (System.getenv("GITHUB_ACTIONS") ? "" : "+local") | 28 | version = version + (System.getenv("GITHUB_ACTIONS") ? "" : "+local") |
| 31 | 29 | ||
| 32 | task sourcesJar(type: Jar, dependsOn: classes) { | ||
| 33 | classifier = 'sources' | ||
| 34 | from sourceSets.main.allSource | ||
| 35 | } | ||
| 36 | |||
| 37 | java { | 30 | java { |
| 38 | withSourcesJar() | 31 | withSourcesJar() |
| 32 | sourceCompatibility = JavaVersion.VERSION_17 | ||
| 33 | targetCompatibility = JavaVersion.VERSION_17 | ||
| 39 | } | 34 | } |
| 40 | 35 | ||
| 41 | tasks.withType(JavaCompile).configureEach { | 36 | tasks.withType(JavaCompile).configureEach { |
| @@ -46,7 +41,7 @@ subprojects { | |||
| 46 | 41 | ||
| 47 | checkstyle { | 42 | checkstyle { |
| 48 | configFile = rootProject.file('checkstyle.xml') | 43 | configFile = rootProject.file('checkstyle.xml') |
| 49 | toolVersion = '10.3.3' | 44 | toolVersion = '10.12.4' |
| 50 | } | 45 | } |
| 51 | 46 | ||
| 52 | publishing { | 47 | publishing { |