Skip to content

Commit 5ab530d

Browse files
committed
Update to a modern gradle, and ASM 6.0
1 parent f148917 commit 5ab530d

5 files changed

Lines changed: 56 additions & 53 deletions

File tree

build.gradle

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
buildscript {
22
repositories {
33
mavenCentral()
4+
jcenter()
45
}
56
dependencies {
6-
classpath 'eu.appsatori:gradle-fatjar-plugin:0.2-rc1'
7+
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.1'
78
}
89
}
910

11+
apply plugin: 'com.github.johnrengelman.shadow'
1012
apply plugin: 'java'
1113
apply plugin: 'eclipse'
12-
apply plugin: 'fatjar'
1314
apply plugin: 'maven'
1415

1516
group = 'de.oceanlabs.mcp'
16-
version = '3.5-SNAPSHOT'
17+
version = '3.6-SNAPSHOT'
1718
targetCompatibility = '1.6'
1819
sourceCompatibility = '1.6'
1920

@@ -24,18 +25,19 @@ repositories {
2425
jar {
2526
manifest.attributes('Main-Class': 'de.oceanlabs.mcp.mcinjector.MCInjector')
2627
}
27-
fatJar {
28+
shadowJar {
2829
classifier 'fatjar'
2930
manifest.attributes('Main-Class': 'de.oceanlabs.mcp.mcinjector.MCInjector')
3031
}
3132

3233
artifacts {
3334
archives jar
34-
archives fatJar
35+
archives shadowJar
3536
}
3637

3738
dependencies {
38-
compile 'org.ow2.asm:asm-debug-all:5.0.4'
39+
compile 'org.ow2.asm:asm:6.0'
40+
compile 'org.ow2.asm:asm-tree:6.0'
3941
compile 'net.sf.jopt-simple:jopt-simple:4.5'
4042
compile 'com.google.code.gson:gson:2.2.4'
4143
}

gradle/wrapper/gradle-wrapper.jar

4.12 KB
Binary file not shown.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
#Tue Oct 29 18:00:54 CDT 2013
21
distributionBase=GRADLE_USER_HOME
32
distributionPath=wrapper/dists
43
zipStoreBase=GRADLE_USER_HOME
54
zipStorePath=wrapper/dists
6-
distributionUrl=http\://services.gradle.org/distributions/gradle-1.8-bin.zip
5+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.3.1-bin.zip

gradlew

Lines changed: 43 additions & 35 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gradlew.bat

Lines changed: 4 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)