mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 21:26:45 +01:00
Minor gradle edit
This commit is contained in:
parent
520be48198
commit
5b8f6e466a
@ -4,8 +4,8 @@ repositories {
|
|||||||
maven { url "http://nexus.hc.to/content/repositories/pub_releases" }
|
maven { url "http://nexus.hc.to/content/repositories/pub_releases" }
|
||||||
maven { url = "https://repo.codemc.org/repository/maven-public" }
|
maven { url = "https://repo.codemc.org/repository/maven-public" }
|
||||||
maven {
|
maven {
|
||||||
name 'papermc'
|
name "papermc"
|
||||||
url 'https://papermc.io/repo/repository/maven-public/'
|
url "https://papermc.io/repo/repository/maven-public/"
|
||||||
}
|
}
|
||||||
mavenLocal()
|
mavenLocal()
|
||||||
}
|
}
|
||||||
@ -13,15 +13,15 @@ repositories {
|
|||||||
apply plugin: "com.github.johnrengelman.shadow"
|
apply plugin: "com.github.johnrengelman.shadow"
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation project(':Core')
|
implementation project(":Core")
|
||||||
compile project(':Core')
|
compile project(":Core")
|
||||||
compile 'com.destroystokyo.paper:paper-api:1.14.4-R0.1-SNAPSHOT'
|
compile "com.destroystokyo.paper:paper-api:1.14.4-R0.1-SNAPSHOT"
|
||||||
//implementation 'com.onarandombox.multiversecore:Multiverse-Core:3.0.0-SNAPSHOT'
|
//implementation 'com.onarandombox.multiversecore:Multiverse-Core:3.0.0-SNAPSHOT'
|
||||||
implementation 'org.spigotmc:spigot-api:1.14.4-R0.1-SNAPSHOT'
|
implementation "org.spigotmc:spigot-api:1.14.4-R0.1-SNAPSHOT"
|
||||||
compile(group: 'com.sk89q.worldedit', name: 'worldedit-bukkit', version: '7.0.0')
|
compile(group: "com.sk89q.worldedit", name: "worldedit-bukkit", version: "7.0.0")
|
||||||
compile "io.papermc:paperlib:1.0.2"
|
compile "io.papermc:paperlib:1.0.2"
|
||||||
compile("net.milkbowl.vault:VaultAPI:1.7") {
|
compile("net.milkbowl.vault:VaultAPI:1.7") {
|
||||||
exclude module: 'bukkit'
|
exclude module: "bukkit"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -29,8 +29,8 @@ sourceCompatibility = 1.8
|
|||||||
targetCompatibility = 1.8
|
targetCompatibility = 1.8
|
||||||
|
|
||||||
processResources {
|
processResources {
|
||||||
from('src/main/resources') {
|
from("src/main/resources") {
|
||||||
include 'plugin.yml'
|
include "plugin.yml"
|
||||||
expand(
|
expand(
|
||||||
name: project.parent.name,
|
name: project.parent.name,
|
||||||
version: project.parent.version
|
version: project.parent.version
|
||||||
@ -42,19 +42,19 @@ jar.enabled = false
|
|||||||
|
|
||||||
shadowJar {
|
shadowJar {
|
||||||
dependencies {
|
dependencies {
|
||||||
include(dependency(':Core'))
|
include(dependency(":Core"))
|
||||||
// update notification stuff
|
// update notification stuff
|
||||||
include(dependency('com.github.Sauilitired:Jenkins4J:2.0-SNAPSHOT'))
|
include(dependency("com.github.Sauilitired:Jenkins4J:2.0-SNAPSHOT"))
|
||||||
include(dependency('com.squareup.retrofit2:retrofit:2.4.0'))
|
include(dependency("com.squareup.retrofit2:retrofit:2.4.0"))
|
||||||
include(dependency('com.squareup.okhttp3:okhttp:3.14.0'))
|
include(dependency("com.squareup.okhttp3:okhttp:3.14.0"))
|
||||||
include(dependency('com.squareup.okio:okio:2.2.2'))
|
include(dependency("com.squareup.okio:okio:2.2.2"))
|
||||||
include(dependency('org.jetbrains.kotlin:kotlin-stdlib:1.3.30'))
|
include(dependency("org.jetbrains.kotlin:kotlin-stdlib:1.3.30"))
|
||||||
include(dependency("io.papermc:paperlib:1.0.2"))
|
include(dependency("io.papermc:paperlib:1.0.2"))
|
||||||
}
|
}
|
||||||
relocate 'io.papermc.lib', 'com.github.intellectualsites.plotsquared.bukkit.paperlib'
|
relocate "io.papermc.lib", "com.github.intellectualsites.plotsquared.bukkit.paperlib"
|
||||||
// relocate('org.mcstats', 'com.plotsquared.stats')
|
// relocate('org.mcstats', 'com.plotsquared.stats')
|
||||||
archiveName = "${parent.name}-${project.name}-${parent.version}.jar"
|
archiveName = "${parent.name}-${project.name}-${parent.version}.jar"
|
||||||
destinationDir = file '../target'
|
destinationDir = file "../target"
|
||||||
}
|
}
|
||||||
|
|
||||||
shadowJar.doLast {
|
shadowJar.doLast {
|
||||||
|
@ -1,29 +1,29 @@
|
|||||||
repositories {
|
repositories {
|
||||||
maven { url 'https://jitpack.io' }
|
maven { url "https://jitpack.io" }
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'org.yaml:snakeyaml:1.23'
|
implementation "org.yaml:snakeyaml:1.23"
|
||||||
//keep inline with Minecraft which uses gson 2.8.0
|
//keep inline with Minecraft which uses gson 2.8.0
|
||||||
implementation 'com.google.code.gson:gson:2.8.0'
|
implementation "com.google.code.gson:gson:2.8.0"
|
||||||
implementation("org.projectlombok:lombok:1.18.6")
|
implementation("org.projectlombok:lombok:1.18.6")
|
||||||
compileOnly("org.projectlombok:lombok:1.18.6")
|
compileOnly("org.projectlombok:lombok:1.18.6")
|
||||||
testCompileOnly("org.projectlombok:lombok:1.18.6")
|
testCompileOnly("org.projectlombok:lombok:1.18.6")
|
||||||
annotationProcessor("org.projectlombok:lombok:1.18.6")
|
annotationProcessor("org.projectlombok:lombok:1.18.6")
|
||||||
testAnnotationProcessor("org.projectlombok:lombok:1.18.6")
|
testAnnotationProcessor("org.projectlombok:lombok:1.18.6")
|
||||||
implementation 'net.kyori:text-adapter-bukkit:3.0.2'
|
implementation "net.kyori:text-adapter-bukkit:3.0.2"
|
||||||
implementation 'com.github.Sauilitired:Jenkins4J:2.0-SNAPSHOT'
|
implementation "com.github.Sauilitired:Jenkins4J:2.0-SNAPSHOT"
|
||||||
implementation 'com.squareup.okhttp3:okhttp:3.14.0'
|
implementation "com.squareup.okhttp3:okhttp:3.14.0"
|
||||||
implementation 'com.squareup.okio:okio:2.2.2'
|
implementation "com.squareup.okio:okio:2.2.2"
|
||||||
implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.3.30'
|
implementation "org.jetbrains.kotlin:kotlin-stdlib:1.3.30"
|
||||||
}
|
}
|
||||||
|
|
||||||
sourceCompatibility = 1.8
|
sourceCompatibility = 1.8
|
||||||
targetCompatibility = 1.8
|
targetCompatibility = 1.8
|
||||||
|
|
||||||
processResources {
|
processResources {
|
||||||
from('src/main/resources') {
|
from("src/main/resources") {
|
||||||
include 'plugin.properties'
|
include "plugin.properties"
|
||||||
expand(
|
expand(
|
||||||
version: "${project.parent.version}",
|
version: "${project.parent.version}",
|
||||||
name: project.parent.name,
|
name: project.parent.name,
|
||||||
@ -34,21 +34,21 @@ processResources {
|
|||||||
}
|
}
|
||||||
|
|
||||||
jar.setArchiveName("PlotSquared-API-${project.parent.version}.jar")
|
jar.setArchiveName("PlotSquared-API-${project.parent.version}.jar")
|
||||||
jar.destinationDir = file '../mvn/com/github/intellectualsites/plotsquared/PlotSquared-API/' + project.parent.version
|
jar.destinationDir = file "../mvn/com/github/intellectualsites/plotsquared/PlotSquared-API/" + project.parent.version
|
||||||
task createPom {
|
task createPom {
|
||||||
doLast {
|
doLast {
|
||||||
pom {
|
pom {
|
||||||
project {
|
project {
|
||||||
groupId 'com.github.intellectualsites.plotsquared'
|
groupId "com.github.intellectualsites.plotsquared"
|
||||||
artifactId 'PlotSquared-API'
|
artifactId "PlotSquared-API"
|
||||||
version project.parent.version
|
version project.parent.version
|
||||||
}
|
}
|
||||||
}.writeTo("../mvn/com/github/intellectualsites/plotsquared/PlotSquared-API/${project.parent.version}/PlotSquared-API-${project.parent.version}.pom")
|
}.writeTo("../mvn/com/github/intellectualsites/plotsquared/PlotSquared-API/${project.parent.version}/PlotSquared-API-${project.parent.version}.pom")
|
||||||
pom {
|
pom {
|
||||||
project {
|
project {
|
||||||
groupId 'com.github.intellectualsites.plotsquared'
|
groupId "com.github.intellectualsites.plotsquared"
|
||||||
artifactId 'PlotSquared-API'
|
artifactId "PlotSquared-API"
|
||||||
version 'latest'
|
version "latest"
|
||||||
}
|
}
|
||||||
}.writeTo("../mvn/com/github/intellectualsites/plotsquared/PlotSquared-API/latest/PlotSquared-API-latest.pom")
|
}.writeTo("../mvn/com/github/intellectualsites/plotsquared/PlotSquared-API/latest/PlotSquared-API-latest.pom")
|
||||||
}
|
}
|
||||||
@ -58,9 +58,9 @@ task copyFiles {
|
|||||||
doLast {
|
doLast {
|
||||||
copy {
|
copy {
|
||||||
from "../mvn/com/github/intellectualsites/plotsquared/PlotSquared-API/${project.parent.version}/"
|
from "../mvn/com/github/intellectualsites/plotsquared/PlotSquared-API/${project.parent.version}/"
|
||||||
into '../mvn/com/github/intellectualsites/plotsquared/PlotSquared-API/latest/'
|
into "../mvn/com/github/intellectualsites/plotsquared/PlotSquared-API/latest/"
|
||||||
include('*.jar')
|
include("*.jar")
|
||||||
rename("PlotSquared-API-${project.parent.version}.jar", 'PlotSquared-API-latest.jar')
|
rename("PlotSquared-API-${project.parent.version}.jar", "PlotSquared-API-latest.jar")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
46
build.gradle
46
build.gradle
@ -7,32 +7,32 @@ buildscript {
|
|||||||
jcenter()
|
jcenter()
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.github.jengelman.gradle.plugins:shadow:5.0.0'
|
classpath "com.github.jengelman.gradle.plugins:shadow:5.0.0"
|
||||||
}
|
}
|
||||||
configurations.all {
|
configurations.all {
|
||||||
resolutionStrategy {
|
resolutionStrategy {
|
||||||
force 'org.ow2.asm:asm:7.1'
|
force "org.ow2.asm:asm:7.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'maven-publish'
|
id "maven-publish"
|
||||||
id "org.ajoberstar.grgit" version "3.1.1"
|
id "org.ajoberstar.grgit" version "3.1.1"
|
||||||
}
|
}
|
||||||
|
|
||||||
group = 'com.github.intellectualsites.plotsquared'
|
group = "com.github.intellectualsites.plotsquared"
|
||||||
|
|
||||||
def rootVersion = "4"
|
def rootVersion = "4"
|
||||||
def revision = ""
|
def revision = ""
|
||||||
def buildNumber = ""
|
def buildNumber = ""
|
||||||
def date = ""
|
def date = ""
|
||||||
ext {
|
ext {
|
||||||
git = Grgit.open(dir: new File(rootDir.toString()+'/.git'))
|
git = Grgit.open(dir: new File(rootDir.toString()+"/.git"))
|
||||||
date = git.head().getDate().format("yy.MM.dd")
|
date = git.head().getDate().format("yy.MM.dd")
|
||||||
revision = "-${git.head().abbreviatedId}"
|
revision = "-${git.head().abbreviatedId}"
|
||||||
parents = git.head().parentIds;
|
parents = git.head().parentIds;
|
||||||
if (project.hasProperty('buildnumber')) {
|
if (project.hasProperty("buildnumber")) {
|
||||||
buildNumber = "$buildnumber"
|
buildNumber = "$buildnumber"
|
||||||
} else {
|
} else {
|
||||||
index = -2042; // Offset to match CI
|
index = -2042; // Offset to match CI
|
||||||
@ -48,28 +48,28 @@ version = String.format("%s.%s", rootVersion, buildNumber)
|
|||||||
description = rootProject.name
|
description = rootProject.name
|
||||||
|
|
||||||
subprojects {
|
subprojects {
|
||||||
apply plugin: 'java'
|
apply plugin: "java"
|
||||||
apply plugin: 'maven'
|
apply plugin: "maven"
|
||||||
apply plugin: 'eclipse'
|
apply plugin: "eclipse"
|
||||||
apply plugin: 'idea'
|
apply plugin: "idea"
|
||||||
apply plugin: 'com.github.johnrengelman.shadow'
|
apply plugin: "com.github.johnrengelman.shadow"
|
||||||
|
|
||||||
group = 'com.github.intellectualsites.plotsquared'
|
group = "com.github.intellectualsites.plotsquared"
|
||||||
|
|
||||||
clean.doFirst {
|
clean.doFirst {
|
||||||
delete "../target"
|
delete "../target"
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation('com.sk89q.worldedit:worldedit-core:7.0.0') {
|
implementation("com.sk89q.worldedit:worldedit-core:7.0.0") {
|
||||||
exclude(module: 'bukkit-classloader-check')
|
exclude(module: "bukkit-classloader-check")
|
||||||
exclude(module: 'mockito-core')
|
exclude(module: "mockito-core")
|
||||||
exclude(module: 'dummypermscompat')
|
exclude(module: "dummypermscompat")
|
||||||
}
|
}
|
||||||
implementation 'net.kyori:text-api:3.0.0'
|
implementation "net.kyori:text-api:3.0.0"
|
||||||
//Minecraft uses Guava 21 as of 1.13.
|
//Minecraft uses Guava 21 as of 1.13.
|
||||||
compile 'com.google.guava:guava:21.0'
|
compile "com.google.guava:guava:21.0"
|
||||||
compileOnly 'org.jetbrains:annotations:17.0.0'
|
compileOnly "org.jetbrains:annotations:17.0.0"
|
||||||
compile("org.projectlombok:lombok:1.18.6")
|
compile("org.projectlombok:lombok:1.18.6")
|
||||||
compileOnly("org.projectlombok:lombok:1.18.6")
|
compileOnly("org.projectlombok:lombok:1.18.6")
|
||||||
testCompileOnly("org.projectlombok:lombok:1.18.6")
|
testCompileOnly("org.projectlombok:lombok:1.18.6")
|
||||||
@ -82,16 +82,16 @@ subprojects {
|
|||||||
mavenCentral()
|
mavenCentral()
|
||||||
maven { url "http://maven.sk89q.com/repo/" }
|
maven { url "http://maven.sk89q.com/repo/" }
|
||||||
maven { url "http://repo.maven.apache.org/maven2" }
|
maven { url "http://repo.maven.apache.org/maven2" }
|
||||||
maven { url 'https://jitpack.io' }
|
maven { url "https://jitpack.io" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
task aggregatedJavadocs(type: Javadoc, description: 'Generate javadocs from all child projects as if it was a single project', group: 'Documentation') {
|
task aggregatedJavadocs(type: Javadoc, description: "Generate javadocs from all child projects as if it was a single project", group: "Documentation") {
|
||||||
destinationDir = file("./docs/javadoc")
|
destinationDir = file("./docs/javadoc")
|
||||||
title = "$project.name $version API"
|
title = "$project.name $version API"
|
||||||
options.author true
|
options.author true
|
||||||
options.links 'http://docs.spring.io/spring/docs/4.3.x/javadoc-api/', 'http://docs.oracle.com/javase/8/docs/api/', 'http://docs.spring.io/spring-ws/docs/2.3.0.RELEASE/api/', 'http://docs.spring.io/spring-security/site/docs/4.0.4.RELEASE/apidocs/'
|
options.links "http://docs.spring.io/spring/docs/4.3.x/javadoc-api/", "http://docs.oracle.com/javase/8/docs/api/", "http://docs.spring.io/spring-ws/docs/2.3.0.RELEASE/api/", "http://docs.spring.io/spring-security/site/docs/4.0.4.RELEASE/apidocs/"
|
||||||
options.addStringOption('Xdoclint:none', '-quiet')
|
options.addStringOption("Xdoclint:none", "-quiet")
|
||||||
|
|
||||||
delete "./docs"
|
delete "./docs"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user