From 14055230464411fd6da86ef59d7072e2324ba509 Mon Sep 17 00:00:00 2001 From: yushijinhun Date: Sat, 12 Aug 2017 22:42:31 +0800 Subject: [PATCH] Add gradle scripts --- build.gradle | 28 ++++++++++++++++++++++++++++ settings.gradle | 1 + 2 files changed, 29 insertions(+) create mode 100644 build.gradle create mode 100644 settings.gradle diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000..5bd477c --- /dev/null +++ b/build.gradle @@ -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' + ) + } +} diff --git a/settings.gradle b/settings.gradle new file mode 100644 index 0000000..8229d68 --- /dev/null +++ b/settings.gradle @@ -0,0 +1 @@ +rootProject.name = 'authlib-injector'