2019-03-18 18:49:22 +00:00
|
|
|
repositories {
|
|
|
|
maven { url 'https://jitpack.io' }
|
|
|
|
}
|
|
|
|
|
2016-02-26 12:55:21 +00:00
|
|
|
dependencies {
|
2016-02-29 16:15:51 +00:00
|
|
|
testCompile 'junit:junit:4.12'
|
2018-12-21 16:26:19 +00:00
|
|
|
compile 'org.yaml:snakeyaml:1.23'
|
|
|
|
compile 'com.google.code.gson:gson:2.8.5'
|
2019-04-23 22:47:00 +00:00
|
|
|
compile("org.projectlombok:lombok:1.18.6")
|
|
|
|
compileOnly("org.projectlombok:lombok:1.18.6")
|
|
|
|
testCompileOnly("org.projectlombok:lombok:1.18.6")
|
|
|
|
annotationProcessor("org.projectlombok:lombok:1.18.6")
|
|
|
|
testAnnotationProcessor("org.projectlombok:lombok:1.18.6")
|
2019-03-18 18:49:22 +00:00
|
|
|
|
2019-04-23 21:41:06 +00:00
|
|
|
compile 'com.github.Sauilitired:Jenkins4J:2.0-SNAPSHOT'
|
2019-04-23 22:03:52 +00:00
|
|
|
compile 'com.squareup.okhttp3:okhttp:3.14.0'
|
2019-03-18 18:49:22 +00:00
|
|
|
compile 'com.squareup.okio:okio:2.2.2'
|
2019-04-23 21:27:32 +00:00
|
|
|
compile 'org.jetbrains.kotlin:kotlin-stdlib:1.3.30'
|
2016-02-27 05:05:21 +00:00
|
|
|
}
|
2019-03-18 18:49:22 +00:00
|
|
|
|
2018-11-14 13:19:56 +00:00
|
|
|
sourceCompatibility = 1.8
|
|
|
|
targetCompatibility = 1.8
|
2016-02-27 18:41:49 +00:00
|
|
|
|
2017-03-08 05:51:01 +00:00
|
|
|
processResources {
|
|
|
|
from('src/main/resources') {
|
2017-08-09 05:04:59 +00:00
|
|
|
include 'plugin.properties'
|
2017-03-08 05:51:01 +00:00
|
|
|
expand(
|
|
|
|
version: "${project.parent.version}",
|
|
|
|
name: project.parent.name,
|
2019-01-03 17:32:21 +00:00
|
|
|
commit: "${git.head().abbreviatedId}",
|
|
|
|
date: "${git.head().getDate().format("yy.MM.dd")}",
|
2017-03-08 05:51:01 +00:00
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-02-22 16:54:13 +00:00
|
|
|
jar.archiveName = "PlotSquared-API-${project.parent.version}.jar"
|
|
|
|
jar.destinationDir = file '../mvn/com/github/intellectualsites/plotsquared/PlotSquared-API/' + project.parent.version
|
2018-12-21 16:26:19 +00:00
|
|
|
task createPom {
|
|
|
|
doLast {
|
|
|
|
pom {
|
|
|
|
project {
|
2018-12-25 17:27:07 +00:00
|
|
|
groupId 'com.github.intellectualsites.plotsquared'
|
2019-02-22 16:54:13 +00:00
|
|
|
artifactId 'PlotSquared-API'
|
2018-12-21 16:26:19 +00:00
|
|
|
version project.parent.version
|
|
|
|
}
|
2019-02-22 16:54:13 +00:00
|
|
|
}.writeTo("../mvn/com/github/intellectualsites/plotsquared/PlotSquared-API/${project.parent.version}/PlotSquared-API-${project.parent.version}.pom")
|
2018-12-21 16:26:19 +00:00
|
|
|
pom {
|
|
|
|
project {
|
2018-12-25 17:27:07 +00:00
|
|
|
groupId 'com.github.intellectualsites.plotsquared'
|
2019-02-22 16:54:13 +00:00
|
|
|
artifactId 'PlotSquared-API'
|
2018-12-21 16:26:19 +00:00
|
|
|
version 'latest'
|
|
|
|
}
|
2019-02-22 16:54:13 +00:00
|
|
|
}.writeTo("../mvn/com/github/intellectualsites/plotsquared/PlotSquared-API/latest/PlotSquared-API-latest.pom")
|
2018-12-21 16:26:19 +00:00
|
|
|
}
|
2017-03-08 05:51:01 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
task copyFiles {
|
|
|
|
doLast {
|
|
|
|
copy {
|
2019-02-22 16:54:13 +00:00
|
|
|
from "../mvn/com/github/intellectualsites/plotsquared/PlotSquared-API/${project.parent.version}/"
|
|
|
|
into '../mvn/com/github/intellectualsites/plotsquared/PlotSquared-API/latest/'
|
2017-03-08 05:51:01 +00:00
|
|
|
include('*.jar')
|
2019-02-22 16:54:13 +00:00
|
|
|
rename("PlotSquared-API-${project.parent.version}.jar", 'PlotSquared-API-latest.jar')
|
2017-03-08 05:51:01 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
build.finalizedBy(copyFiles)
|
2018-08-10 15:01:10 +00:00
|
|
|
copyFiles.dependsOn(createPom)
|