2019-08-26 19:00:02 +02:00
|
|
|
group = 'net.luckperms'
|
2020-05-10 15:02:57 +02:00
|
|
|
project.version = '5.1'
|
2018-08-10 21:39:29 +02:00
|
|
|
|
|
|
|
dependencies {
|
2018-09-19 21:40:18 +02:00
|
|
|
compileOnly 'org.checkerframework:checker-qual:2.5.5'
|
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 + ')'
|
2018-09-23 15:29:52 +02:00
|
|
|
options.encoding = 'UTF-8'
|
|
|
|
options.charSet = 'UTF-8'
|
|
|
|
options.links(
|
|
|
|
'https://docs.oracle.com/javase/8/docs/api/'
|
|
|
|
)
|
|
|
|
options.addStringOption('Xdoclint:none', '-quiet')
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
|
|
|
uploadArchives {
|
|
|
|
repositories {
|
|
|
|
mavenDeployer {
|
|
|
|
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
|
|
|
|
|
|
|
|
repository(url: 'https://oss.sonatype.org/service/local/staging/deploy/maven2/') {
|
|
|
|
authentication(userName: sonatypeUsername, password: sonatypePassword)
|
|
|
|
}
|
|
|
|
|
2019-04-01 15:00:21 +02:00
|
|
|
snapshotRepository(url: 'https://oss.sonatype.org/content/repositories/snapshots/') {
|
|
|
|
authentication(userName: sonatypeUsername, password: sonatypePassword)
|
|
|
|
}
|
|
|
|
|
2018-08-10 21:39:29 +02:00
|
|
|
pom {
|
|
|
|
project {
|
|
|
|
name 'LuckPerms API'
|
2018-09-23 15:29:52 +02:00
|
|
|
description 'An advanced permissions plugin for Bukkit/Spigot, BungeeCord, Sponge, Nukkit and Velocity.'
|
2019-11-18 22:19:59 +01:00
|
|
|
url 'https://luckperms.net'
|
2018-08-10 21:39:29 +02:00
|
|
|
|
|
|
|
licenses {
|
|
|
|
license {
|
|
|
|
name 'MIT'
|
|
|
|
url 'https://opensource.org/licenses/MIT'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
developers {
|
|
|
|
developer {
|
2020-05-10 15:02:57 +02:00
|
|
|
id 'lucko'
|
2018-08-10 21:39:29 +02:00
|
|
|
name 'Luck'
|
2020-05-10 15:02:57 +02:00
|
|
|
url 'https://lucko.me'
|
2018-08-10 21:39:29 +02:00
|
|
|
email 'git@lucko.me'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
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'
|
|
|
|
}
|
|
|
|
|
|
|
|
ciManagement {
|
|
|
|
system 'Jenkins'
|
|
|
|
url 'https://ci.lucko.me/job/LuckPerms'
|
|
|
|
}
|
|
|
|
|
|
|
|
issueManagement {
|
|
|
|
system 'GitHub'
|
|
|
|
url 'https://github.com/lucko/LuckPerms/issues'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-10-15 23:30:27 +02:00
|
|
|
*/
|