aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorGlavo <zjx001202@126.com>2018-04-11 14:38:54 +0800
committerGlavo <zjx001202@126.com>2018-04-11 14:38:54 +0800
commit5873deb7af12aa2b84221e9e12e0dc7ca5807f0a (patch)
tree2ec69a3c1ff7a98eeba212383c583e8ac7e25fba /build.gradle
parent3a070a3cbb52f8b8d23fe152db00530e95cfa1c1 (diff)
downloadgjavah-5873deb7af12aa2b84221e9e12e0dc7ca5807f0a.tar.gz
gjavah-5873deb7af12aa2b84221e9e12e0dc7ca5807f0a.tar.bz2
gjavah-5873deb7af12aa2b84221e9e12e0dc7ca5807f0a.zip
update0.1.0
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle35
1 files changed, 35 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
new file mode 100644
index 0000000..8cc9f05
--- /dev/null
+++ b/build.gradle
@@ -0,0 +1,35 @@
+group 'org.glavo'
+version '0.1.0'
+
+apply plugin: 'java'
+
+sourceCompatibility = 1.6
+targetCompatibility = 1.6
+
+repositories {
+ mavenCentral()
+}
+
+dependencies {
+ compile group: 'org.ow2.asm', name: 'asm', version: '6.1.1'
+
+ testCompile group: 'junit', name: 'junit', version: '4.12'
+}
+
+jar {
+ manifest {
+ attributes 'Implementation-Version': '1.2',
+ 'Main-Class': 'org.glavo.javah.HeaderGenerator'
+ }
+}
+
+task fatJar(type: Jar) {
+ baseName = project.name + '-all'
+ description = 'Assembles a jar archive containing the main classes and all the dependencies.'
+ from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
+ manifest {
+ attributes 'Implementation-Version': '1.2',
+ 'Main-Class': 'org.glavo.javah.HeaderGenerator'
+ }
+ with jar
+} \ No newline at end of file