Add gradle scripts

This commit is contained in:
yushijinhun 2017-08-12 22:42:31 +08:00
parent 470381d2b8
commit 1405523046
No known key found for this signature in database
GPG Key ID: 5BC167F73EA558E4
2 changed files with 29 additions and 0 deletions

28
build.gradle Normal file
View File

@ -0,0 +1,28 @@
plugins {
id 'com.github.johnrengelman.shadow' version '2.0.1'
id 'java'
}
repositories {
mavenCentral()
}
dependencies {
compile 'org.ow2.asm:asm:5.2'
compile 'org.yaml:snakeyaml:1.18'
testCompile 'junit:junit:4.12'
}
sourceCompatibility = 1.8
version = '1.0-SNAPSHOT'
jar {
manifest {
attributes (
'Implementation-Title': project.name,
'Implementation-Version': version,
'Premain-Class': 'org.to2mbn.authlibtweaker.javaagent.AuthlibInjectorPremain',
'TweakClass': 'org.to2mbn.authlibtweaker.tweaker.AuthlibInjectorTweaker'
)
}
}

1
settings.gradle Normal file
View File

@ -0,0 +1 @@
rootProject.name = 'authlib-injector'