add gradle wrapper and jar building
This commit is contained in:
parent
295a1f8af0
commit
a8f8af1102
|
@ -83,9 +83,6 @@ fabric.properties
|
|||
# Ignore Gradle GUI config
|
||||
gradle-app.setting
|
||||
|
||||
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
|
||||
!gradle-wrapper.jar
|
||||
|
||||
# Cache of project
|
||||
.gradletasknamecache
|
||||
|
||||
|
@ -117,3 +114,6 @@ gradle-app.setting
|
|||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
|
||||
hs_err_pid*
|
||||
|
||||
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
|
||||
!gradle-wrapper.jar
|
||||
|
||||
|
|
16
build.gradle
16
build.gradle
|
@ -1,11 +1,13 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
id 'application'
|
||||
}
|
||||
|
||||
group 'net.lwenstrom.jan'
|
||||
version '1.0-SNAPSHOT'
|
||||
|
||||
sourceCompatibility = 11
|
||||
targetCompatibility = 11
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
|
@ -23,3 +25,17 @@ dependencies {
|
|||
compile group: 'org.javatuples', name: 'javatuples', version: '1.2'
|
||||
|
||||
}
|
||||
|
||||
// Include dependent libraries in archive.
|
||||
mainClassName = "example.JumpingDino"
|
||||
|
||||
|
||||
jar {
|
||||
manifest {
|
||||
attributes "Main-Class": "$mainClassName"
|
||||
}
|
||||
|
||||
from {
|
||||
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
|
||||
}
|
||||
}
|
||||
|
|
Binary file not shown.
|
@ -1,6 +1,5 @@
|
|||
#Wed Dec 11 23:10:59 CET 2019
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-bin.zip
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-all.zip
|
||||
|
|
Loading…
Reference in New Issue