update gradle configuration to something more recent (2.1+)
apparently i was unknowningly using a very old version of gradle. oops.
This commit is contained in:
parent
4a90913ff3
commit
aaf31a93be
12
README.md
12
README.md
|
@ -12,15 +12,21 @@ seems he uses LiveSplit now (?).
|
||||||
Regardless, here I will be extending the original application as best I can by adding some missing features here and
|
Regardless, here I will be extending the original application as best I can by adding some missing features here and
|
||||||
there and fixing bugs as needed.
|
there and fixing bugs as needed.
|
||||||
|
|
||||||
## Building
|
## Building and Running
|
||||||
|
|
||||||
You will need Gradle 1.x. You can build an uberjar (a JAR containing all library dependencies inside it) by running:
|
You will need Gradle. The Gradle `application` plugin is being used, so you can run Llanfair simply by doing:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ gradle run
|
||||||
|
```
|
||||||
|
|
||||||
|
To package up a JAR file for redistribution, run:
|
||||||
|
|
||||||
```
|
```
|
||||||
$ gradle shadowJar
|
$ gradle shadowJar
|
||||||
```
|
```
|
||||||
|
|
||||||
Which will spit out a JAR under `build/libs` under the naming convention `llanfair-[VERSION]-all.jar`.
|
Which will spit out an "uber JAR" under `build/libs` under the naming convention `llanfair-[VERSION]-all.jar`.
|
||||||
|
|
||||||
## TODO
|
## TODO
|
||||||
|
|
||||||
|
|
28
build.gradle
28
build.gradle
|
@ -1,10 +1,21 @@
|
||||||
apply plugin: 'java'
|
buildscript {
|
||||||
apply plugin: 'com.github.johnrengelman.shadow'
|
repositories { jcenter() }
|
||||||
|
dependencies {
|
||||||
|
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.2'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
id 'java'
|
||||||
|
id 'application'
|
||||||
|
id 'com.github.johnrengelman.shadow' version '1.2.2'
|
||||||
|
}
|
||||||
|
|
||||||
sourceCompatibility = 1.7
|
sourceCompatibility = 1.7
|
||||||
targetCompatibility = 1.7
|
targetCompatibility = 1.7
|
||||||
|
|
||||||
version = '1.4.3'
|
version = '1.4.3'
|
||||||
|
mainClassName = 'org.fenix.llanfair.Llanfair'
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
@ -15,16 +26,3 @@ dependencies {
|
||||||
compile 'com.1stleg:jnativehook:2.0.2'
|
compile 'com.1stleg:jnativehook:2.0.2'
|
||||||
compile 'com.thoughtworks.xstream:xstream:1.4.4'
|
compile 'com.thoughtworks.xstream:xstream:1.4.4'
|
||||||
}
|
}
|
||||||
|
|
||||||
buildscript {
|
|
||||||
repositories { jcenter() }
|
|
||||||
dependencies {
|
|
||||||
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.2'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
shadowJar {
|
|
||||||
manifest {
|
|
||||||
attributes 'Main-Class': 'org.fenix.llanfair.Llanfair'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
Reference in a new issue