mirror of
https://github.com/ChronosX88/JGUN.git
synced 2024-11-23 23:12:18 +00:00
43 lines
833 B
Groovy
43 lines
833 B
Groovy
plugins {
|
|
id 'com.github.johnrengelman.shadow' version '4.0.4'
|
|
id 'java'
|
|
}
|
|
|
|
group 'io.github.chronosx88'
|
|
version '0.2.6'
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'org.java-websocket:Java-WebSocket:1.4.0'
|
|
implementation 'net.sourceforge.streamsupport:android-retrofuture:1.7.0'
|
|
implementation group: 'org.json', name: 'json', version: '20180813'
|
|
|
|
testCompile group: 'junit', name: 'junit', version: '4.12'
|
|
}
|
|
|
|
shadowJar {
|
|
relocate 'org.json', 'shadow.org.json'
|
|
}
|
|
|
|
task sourcesJar(type: Jar, dependsOn: classes) {
|
|
classifier = 'sources'
|
|
from sourceSets.main.allSource
|
|
}
|
|
|
|
task javadocJar(type: Jar, dependsOn: javadoc) {
|
|
classifier = 'javadoc'
|
|
from javadoc.destinationDir
|
|
}
|
|
|
|
artifacts {
|
|
archives sourcesJar
|
|
archives javadocJar
|
|
}
|
|
|
|
|