2019-08-26 19:00:02 +02:00
|
|
|
group = 'net.luckperms'
|
2021-03-04 16:13:40 +01:00
|
|
|
project.version = '5.3'
|
2018-08-10 21:39:29 +02:00
|
|
|
|
|
|
|
dependencies {
|
2021-04-18 19:20:54 +02:00
|
|
|
compileOnly 'org.checkerframework:checker-qual:3.12.0'
|
2020-12-14 17:07:20 +01:00
|
|
|
compileOnly 'org.jetbrains:annotations:20.1.0'
|
2018-08-10 21:39:29 +02:00
|
|
|
}
|
|
|
|
|
2018-10-15 23:30:27 +02:00
|
|
|
// Only used occasionally for deployment - not needed for normal builds.
|
|
|
|
/*
|
|
|
|
if (project.hasProperty('sonatypeUsername') && project.hasProperty('sonatypePassword')) {
|
2018-08-10 21:39:29 +02:00
|
|
|
apply plugin: 'signing'
|
|
|
|
|
2018-09-23 15:29:52 +02:00
|
|
|
javadoc {
|
2019-11-18 22:19:59 +01:00
|
|
|
title = 'LuckPerms API (v' + project.ext.apiVersion + ')'
|
2021-03-04 01:25:11 +01:00
|
|
|
options.overview = 'javadoc/overview.html'
|
2018-09-23 15:29:52 +02:00
|
|
|
options.encoding = 'UTF-8'
|
|
|
|
options.charSet = 'UTF-8'
|
|
|
|
options.links(
|
2021-03-03 12:48:20 +01:00
|
|
|
'https://checkerframework.org/api/',
|
|
|
|
'https://javadoc.io/static/org.jetbrains/annotations/20.1.0/'
|
2018-09-23 15:29:52 +02:00
|
|
|
)
|
|
|
|
options.addStringOption('Xdoclint:none', '-quiet')
|
2021-04-18 12:37:46 +02:00
|
|
|
|
|
|
|
if (JavaVersion.current() > JavaVersion.VERSION_1_8) {
|
|
|
|
options.addBooleanOption('-no-module-directories', true)
|
|
|
|
options.links.add('https://docs.oracle.com/en/java/javase/11/docs/api/')
|
|
|
|
} else {
|
|
|
|
options.links.add('https://docs.oracle.com/javase/8/docs/api/')
|
|
|
|
}
|
2018-09-23 15:29:52 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
task javadocJar(type: Jar, dependsOn: javadoc) {
|
2018-08-10 21:39:29 +02:00
|
|
|
classifier 'javadoc'
|
2018-09-23 15:29:52 +02:00
|
|
|
from javadoc.destinationDir
|
2018-08-10 21:39:29 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
task sourcesJar(type: Jar) {
|
|
|
|
classifier 'sources'
|
|
|
|
from sourceSets.main.allSource
|
|
|
|
}
|
|
|
|
|
|
|
|
artifacts {
|
|
|
|
archives javadocJar
|
|
|
|
archives sourcesJar
|
|
|
|
}
|
|
|
|
|
|
|
|
signing {
|
2018-09-23 15:29:52 +02:00
|
|
|
useGpgCmd()
|
2018-08-10 21:39:29 +02:00
|
|
|
sign configurations.archives
|
|
|
|
}
|
|
|
|
|
2021-08-20 19:16:39 +02:00
|
|
|
publishing {
|
2018-08-10 21:39:29 +02:00
|
|
|
repositories {
|
2021-08-20 19:16:39 +02:00
|
|
|
maven {
|
|
|
|
def releasesRepoUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
|
|
|
|
def snapshotsRepoUrl = 'https://oss.sonatype.org/content/repositories/snapshots/'
|
|
|
|
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
|
|
|
|
|
|
|
|
credentials {
|
|
|
|
username sonatypeUsername
|
|
|
|
password sonatypePassword
|
2018-08-10 21:39:29 +02:00
|
|
|
}
|
2021-08-20 19:16:39 +02:00
|
|
|
}
|
|
|
|
}
|
2018-08-10 21:39:29 +02:00
|
|
|
|
2021-08-20 19:16:39 +02:00
|
|
|
publications {
|
|
|
|
mavenJava(MavenPublication) {
|
|
|
|
artifactId = 'api'
|
|
|
|
|
|
|
|
from components.java
|
|
|
|
artifact sourcesJar
|
|
|
|
artifact javadocJar
|
2019-04-01 15:00:21 +02:00
|
|
|
|
2018-08-10 21:39:29 +02:00
|
|
|
pom {
|
2021-08-20 19:16:39 +02:00
|
|
|
name 'LuckPerms API'
|
|
|
|
description 'A permissions plugin for Minecraft servers.'
|
|
|
|
url 'https://luckperms.net'
|
|
|
|
|
|
|
|
licenses {
|
|
|
|
license {
|
|
|
|
name 'MIT'
|
|
|
|
url 'https://opensource.org/licenses/MIT'
|
2018-08-10 21:39:29 +02:00
|
|
|
}
|
2021-08-20 19:16:39 +02:00
|
|
|
}
|
2018-08-10 21:39:29 +02:00
|
|
|
|
2021-08-20 19:16:39 +02:00
|
|
|
developers {
|
|
|
|
developer {
|
|
|
|
id 'lucko'
|
|
|
|
name 'Luck'
|
|
|
|
url 'https://lucko.me'
|
|
|
|
email 'git@lucko.me'
|
2018-08-10 21:39:29 +02:00
|
|
|
}
|
2021-08-20 19:16:39 +02:00
|
|
|
}
|
2018-08-10 21:39:29 +02:00
|
|
|
|
2021-08-20 19:16:39 +02:00
|
|
|
scm {
|
|
|
|
connection 'scm:git:https://github.com/lucko/LuckPerms.git'
|
|
|
|
developerConnection 'scm:git:git@github.com:lucko/LuckPerms.git'
|
|
|
|
url 'https://github.com/lucko/LuckPerms'
|
|
|
|
}
|
2018-08-10 21:39:29 +02:00
|
|
|
|
2021-08-20 19:16:39 +02:00
|
|
|
ciManagement {
|
|
|
|
system 'Jenkins'
|
|
|
|
url 'https://ci.lucko.me/job/LuckPerms'
|
|
|
|
}
|
2018-08-10 21:39:29 +02:00
|
|
|
|
2021-08-20 19:16:39 +02:00
|
|
|
issueManagement {
|
|
|
|
system 'GitHub'
|
|
|
|
url 'https://github.com/lucko/LuckPerms/issues'
|
2018-08-10 21:39:29 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-10-15 23:30:27 +02:00
|
|
|
*/
|