LuckPerms/api/build.gradle

114 lines
3.5 KiB
Groovy
Raw Normal View History

2019-08-26 19:00:02 +02:00
group = 'net.luckperms'
2022-02-09 23:15:09 +01:00
project.version = '5.4'
2018-08-10 21:39:29 +02:00
dependencies {
2022-02-09 23:15:09 +01:00
compileOnly 'org.checkerframework:checker-qual:3.21.2'
compileOnly 'org.jetbrains:annotations:23.0.0'
2018-08-10 21:39:29 +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'
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'
options.encoding = 'UTF-8'
options.charSet = 'UTF-8'
options.links(
'https://checkerframework.org/api/',
2022-02-09 23:15:09 +01:00
'https://javadoc.io/static/org.jetbrains/annotations/23.0.0/'
)
options.addStringOption('Xdoclint:none', '-quiet')
2022-02-09 23:15:09 +01:00
options.addStringOption('-since', '5.0,5.1,5.2,5.3,5.4')
2021-04-18 12:37:46 +02:00
if (JavaVersion.current() > JavaVersion.VERSION_1_8) {
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/')
}
}
task javadocJar(type: Jar, dependsOn: javadoc) {
2018-08-10 21:39:29 +02:00
classifier 'javadoc'
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
}
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 {
2022-02-09 23:15:09 +01:00
name = 'LuckPerms API'
description = 'A permissions plugin for Minecraft servers.'
url = 'https://luckperms.net'
2021-08-20 19:16:39 +02:00
licenses {
license {
2022-02-09 23:15:09 +01:00
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 {
2022-02-09 23:15:09 +01:00
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 {
2022-02-09 23:15:09 +01:00
connection = 'scm:git:https://github.com/LuckPerms/LuckPerms.git'
developerConnection = 'scm:git:git@github.com:LuckPerms/LuckPerms.git'
url = 'https://github.com/LuckPerms/LuckPerms'
2021-08-20 19:16:39 +02:00
}
2018-08-10 21:39:29 +02:00
2021-08-20 19:16:39 +02:00
issueManagement {
2022-02-09 23:15:09 +01:00
system = 'GitHub'
url = 'https://github.com/LuckPerms/LuckPerms/issues'
2018-08-10 21:39:29 +02:00
}
}
}
}
}
2022-02-09 23:15:09 +01:00
signing {
useGpgCmd()
sign configurations.archives
sign publishing.publications.mavenJava
required = true
}
2018-08-10 21:39:29 +02:00
}
*/