GitBucket
4.21.2
Toggle navigation
Snippets
Sign in
Files
Branches
1
Releases
Issues
Pull requests
Labels
Priorities
Milestones
Wiki
Forks
mark.george
/
jrex
Browse code
Remove uneeded task from build.gradle
master
1 parent
8e0a1b3
commit
574ccc9524ef24a03696e012870a8ea5a9ddf318
Mark George
authored
on 5 Aug 2020
Patch
Showing
1 changed file
build.gradle
Ignore Space
Show notes
View
build.gradle
plugins { id 'java' } repositories { jcenter() } dependencies { implementation group: 'com.google.guava', name: 'guava', version: '29.0-jre' implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.6' implementation group: 'com.formdev', name: 'flatlaf', version: '0.39' } // add Main-Class to manifest jar { manifest { attributes ( 'Main-Class': 'JRex' ) } } // make a fat JAR task dist(type: Jar) { project.configurations.implementation.setCanBeResolved(true) manifest.from jar.manifest baseName = 'jrex' from { configurations.implementation.collect { it.isDirectory() ? it : zipTree(it) } } destinationDir = file('dist') with jar } compileJava { sourceCompatibility = '1.8' targetCompatibility = '1.8' }
plugins { id 'java' } repositories { jcenter() } dependencies { implementation group: 'com.google.guava', name: 'guava', version: '29.0-jre' implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.6' implementation group: 'com.formdev', name: 'flatlaf', version: '0.39' } task download(type: Copy) { from sourceSets.main.runtimeClasspath into 'libs' } jar { manifest { attributes ( 'Main-Class': 'JRex' ) } } // make a fat JAR task dist(type: Jar) { project.configurations.implementation.setCanBeResolved(true) manifest.from jar.manifest baseName = 'jrex' from { configurations.implementation.collect { it.isDirectory() ? it : zipTree(it) } } destinationDir = file('dist') with jar } compileJava { sourceCompatibility = '1.8' targetCompatibility = '1.8' }
Show line notes below