import java.nio.file.* import java.nio.file.Path plugins { id 'java' id "com.jfrog.artifactory" version "3.1.1" } println 'Compiling LibsDisguises via Gradle ver. ' + gradle.gradleVersion sourceCompatibility = '1.7' ext.spigotVersion = '1.8.7-R0.1-SNAPSHOT' [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' } } artifactory { contextUrl = 'http://localhost:8081/artifactory' publish { repository { repoKey = 'libs-release-local' username = 'admin' password = 'AP8CX2wEWG8bxfMkUxnycYxQF4s9rttomEXr62' } } resolve { repository { repoKey = 'repo' username = 'admin' password = 'AP8CX2wEWG8bxfMkUxnycYxQF4s9rttomEXr62' } } } file('libs').mkdirs() //Retrieves spigot.jar server file from link ant.get src: 'https://www.dropbox.com/s/1ofgubrldjwamnk/spigot.jar?dl=1', dest: file('libs'), verbose: false, skipexisting: true jar { baseName "LibsDisguises" } dependencies { compile 'org.bukkit:bukkit:' + project.ext.spigotVersion compile 'com.comphenix.protocol:ProtocolLib:3.6.3-SNAPSHOT' compile files( 'libs/spigot.jar' ) testCompile group: 'junit', name: 'junit', version: '4.10' }