summaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorGravatar NebelNidas2023-11-28 09:38:33 +0100
committerGravatar NebelNidas2023-11-28 09:38:33 +0100
commit5df82c380955b452e5096ab9a4f1e66afc9bd18a (patch)
treee3a5a6d2006787f2668e47bca34fb46beb40250c /build.gradle
parentFix checkstyle (diff)
parentUpdate deps (#535) (diff)
downloadenigma-5df82c380955b452e5096ab9a4f1e66afc9bd18a.tar.gz
enigma-5df82c380955b452e5096ab9a4f1e66afc9bd18a.tar.xz
enigma-5df82c380955b452e5096ab9a4f1e66afc9bd18a.zip
Merge branch 'upstream' into mapping-io
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle17
1 files changed, 6 insertions, 11 deletions
diff --git a/build.gradle b/build.gradle
index 8cbe0cd6..b89f1b59 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,5 +1,6 @@
1plugins { 1plugins {
2 id 'maven-publish' 2 id 'maven-publish'
3 id 'com.github.johnrengelman.shadow' version '8.1.1' apply false
3} 4}
4 5
5subprojects { 6subprojects {
@@ -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 implementation 'net.fabricmc:mapping-io:0.5.0' 20 implementation 'net.fabricmc:mapping-io:0.5.0'
23 21
24 compileOnly 'org.jetbrains:annotations:24.0.1' 22 compileOnly 'org.jetbrains:annotations:24.0.1'
@@ -32,13 +30,10 @@ subprojects {
32 30
33 version = version + (System.getenv("GITHUB_ACTIONS") ? "" : "+local") 31 version = version + (System.getenv("GITHUB_ACTIONS") ? "" : "+local")
34 32
35 task sourcesJar(type: Jar, dependsOn: classes) {
36 classifier = 'sources'
37 from sourceSets.main.allSource
38 }
39
40 java { 33 java {
41 withSourcesJar() 34 withSourcesJar()
35 sourceCompatibility = JavaVersion.VERSION_17
36 targetCompatibility = JavaVersion.VERSION_17
42 } 37 }
43 38
44 tasks.withType(JavaCompile).configureEach { 39 tasks.withType(JavaCompile).configureEach {
@@ -49,7 +44,7 @@ subprojects {
49 44
50 checkstyle { 45 checkstyle {
51 configFile = rootProject.file('checkstyle.xml') 46 configFile = rootProject.file('checkstyle.xml')
52 toolVersion = '10.3.3' 47 toolVersion = '10.12.4'
53 } 48 }
54 49
55 publishing { 50 publishing {