2015-07-01 15:17:50 +02:00
|
|
|
|
|
|
|
import java.nio.file.*
|
|
|
|
import java.nio.file.Path
|
|
|
|
|
2015-04-13 07:25:48 +02:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
2015-07-01 20:29:40 +02:00
|
|
|
id 'maven-publish'
|
2015-07-01 15:33:25 +02:00
|
|
|
id "com.jfrog.artifactory" version "3.1.1"
|
2015-04-13 07:25:48 +02:00
|
|
|
}
|
2015-03-10 01:28:41 +01:00
|
|
|
|
2015-03-31 11:39:34 +02:00
|
|
|
println 'Compiling LibsDisguises via Gradle ver. ' + gradle.gradleVersion
|
|
|
|
|
2015-03-10 19:58:05 +01:00
|
|
|
sourceCompatibility = '1.7'
|
2015-06-13 15:24:10 +02:00
|
|
|
ext.spigotVersion = '1.8.7-R0.1-SNAPSHOT'
|
2015-03-10 01:28:41 +01:00
|
|
|
|
|
|
|
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
|
|
|
|
mavenCentral()
|
|
|
|
|
|
|
|
maven {
|
|
|
|
name 'Spigot'
|
|
|
|
url 'https://hub.spigotmc.org/nexus/content/groups/public/'
|
|
|
|
}
|
|
|
|
|
|
|
|
maven {
|
|
|
|
name 'Vault-Repo'
|
|
|
|
url 'http://nexus.theyeticave.net/content/repositories/pub_releases'
|
|
|
|
}
|
|
|
|
|
|
|
|
maven {
|
|
|
|
name 'shadowvolt-repo'
|
|
|
|
url 'http://ci.shadowvolt.com/plugin/repository/everything'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-07-01 20:29:40 +02:00
|
|
|
publishing {
|
|
|
|
publications {
|
|
|
|
mavenJava(MavenPublication) {
|
|
|
|
groupId 'LibsDisguises'
|
|
|
|
artifactId 'LibsDisguises'
|
|
|
|
version '8.5-SNAPSHOT'
|
|
|
|
from components.java
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-07-01 19:47:20 +02:00
|
|
|
artifactoryPublish.skip = false
|
|
|
|
|
2015-07-01 15:33:25 +02:00
|
|
|
artifactory {
|
|
|
|
contextUrl = 'http://localhost:8081/artifactory'
|
|
|
|
publish {
|
|
|
|
repository {
|
2015-07-01 19:47:20 +02:00
|
|
|
repoKey = 'libs-snapshot-local'
|
|
|
|
username = '${artifactory_user}'
|
|
|
|
password = '${artifactory_password}'
|
2015-07-01 15:33:25 +02:00
|
|
|
}
|
2015-07-01 20:29:40 +02:00
|
|
|
defaults {
|
|
|
|
publications('mavenJava')
|
|
|
|
}
|
2015-07-01 15:33:25 +02:00
|
|
|
}
|
|
|
|
resolve {
|
2015-07-01 19:47:20 +02:00
|
|
|
repoKey = 'repo'
|
2015-07-01 15:33:25 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-03-10 01:28:41 +01:00
|
|
|
file('libs').mkdirs()
|
|
|
|
|
2015-05-30 09:22:38 +02:00
|
|
|
//Retrieves spigot.jar server file from link
|
2015-03-26 00:23:16 +01:00
|
|
|
ant.get src: 'https://www.dropbox.com/s/1ofgubrldjwamnk/spigot.jar?dl=1', dest: file('libs'), verbose: false, skipexisting: true
|
2015-03-10 01:28:41 +01:00
|
|
|
|
|
|
|
jar {
|
|
|
|
baseName "LibsDisguises"
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2015-05-30 09:22:38 +02:00
|
|
|
compile 'org.bukkit:bukkit:' + project.ext.spigotVersion
|
|
|
|
compile 'com.comphenix.protocol:ProtocolLib:3.6.3-SNAPSHOT'
|
2015-03-10 01:28:41 +01:00
|
|
|
compile files(
|
2015-03-26 00:23:16 +01:00
|
|
|
'libs/spigot.jar'
|
2015-03-10 01:28:41 +01:00
|
|
|
)
|
|
|
|
testCompile group: 'junit', name: 'junit', version: '4.10'
|
|
|
|
}
|