mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2024-11-08 20:09:59 +01:00
3474c66c1c
- removed a bunch of ugly / badly designed methods and APIs - refactored 'Contexts' --> 'QueryOptions' - Removed the FullySatisfiedContexts hack and replaced it with a sane API - Made PermissionHolder (in the API) less ugly and horrible - removed lots of deprecated / duplicated API functionality and much more...
97 lines
3.0 KiB
Groovy
97 lines
3.0 KiB
Groovy
project.version = '5.0'
|
|
|
|
dependencies {
|
|
compileOnly 'org.checkerframework:checker-qual:2.5.5'
|
|
}
|
|
|
|
// Only used occasionally for deployment - not needed for normal builds.
|
|
/*
|
|
if (project.hasProperty('sonatypeUsername') && project.hasProperty('sonatypePassword')) {
|
|
apply plugin: 'signing'
|
|
|
|
javadoc {
|
|
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) {
|
|
classifier 'javadoc'
|
|
from javadoc.destinationDir
|
|
}
|
|
|
|
task sourcesJar(type: Jar) {
|
|
classifier 'sources'
|
|
from sourceSets.main.allSource
|
|
}
|
|
|
|
artifacts {
|
|
archives javadocJar
|
|
archives sourcesJar
|
|
}
|
|
|
|
signing {
|
|
useGpgCmd()
|
|
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)
|
|
}
|
|
|
|
snapshotRepository(url: 'https://oss.sonatype.org/content/repositories/snapshots/') {
|
|
authentication(userName: sonatypeUsername, password: sonatypePassword)
|
|
}
|
|
|
|
pom {
|
|
project {
|
|
name 'LuckPerms API'
|
|
description 'An advanced permissions plugin for Bukkit/Spigot, BungeeCord, Sponge, Nukkit and Velocity.'
|
|
url 'https://luckperms.github.io'
|
|
|
|
licenses {
|
|
license {
|
|
name 'MIT'
|
|
url 'https://opensource.org/licenses/MIT'
|
|
}
|
|
}
|
|
|
|
developers {
|
|
developer {
|
|
name 'Luck'
|
|
email 'git@lucko.me'
|
|
url 'https://github.com/lucko'
|
|
}
|
|
}
|
|
|
|
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'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
*/
|