aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle37
1 files changed, 15 insertions, 22 deletions
diff --git a/build.gradle b/build.gradle
index 1a66499..9bdd733 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,35 +1,28 @@
+plugins {
+ id 'java'
+ id "org.javamodularity.moduleplugin" version "1.6.0"
+}
+
group 'org.glavo'
-version '0.1.1'
+version '0.2'
-apply plugin: 'java'
+modularity.mixedJavaRelease 8
-sourceCompatibility = 1.8
-targetCompatibility = 1.8
+jar {
+ manifest.attributes(
+ 'Implementation-Version': '1.2',
+ 'Main-Class': 'org.glavo.javah.Main'
+ )
+}
repositories {
mavenCentral()
}
dependencies {
- compile group: 'org.ow2.asm', name: 'asm', version: '6.1.1'
+ // https://mvnrepository.com/artifact/org.ow2.asm/asm
+ compile group: 'org.ow2.asm', name: 'asm', version: '7.2'
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