110 lines
3.0 KiB
Groovy
110 lines
3.0 KiB
Groovy
buildscript {
|
|
|
|
repositories {
|
|
|
|
maven {
|
|
url "https://plugins.gradle.org/m2/"
|
|
}
|
|
|
|
jcenter()
|
|
mavenLocal()
|
|
mavenCentral()
|
|
}
|
|
}
|
|
|
|
apply from: 'version.gradle'
|
|
|
|
allprojects {
|
|
|
|
apply from: 'plugins.gradle'
|
|
|
|
group 'org.pgpainless'
|
|
description = "Simple to use OpenPGP API for Java based on Bouncycastle"
|
|
version = shortVersion
|
|
|
|
sourceCompatibility = javaSourceCompatibility
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
}
|
|
|
|
subprojects {
|
|
apply plugin: 'maven'
|
|
apply plugin: 'signing'
|
|
|
|
task sourcesJar(type: Jar, dependsOn: classes) {
|
|
classifier = 'sources'
|
|
from sourceSets.main.allSource
|
|
}
|
|
task javadocJar(type: Jar, dependsOn: javadoc) {
|
|
classifier = 'javadoc'
|
|
from javadoc.destinationDir
|
|
}
|
|
task testJar(type: Jar, dependsOn: testClasses) {
|
|
classifier = 'tests'
|
|
from sourceSets.test.output
|
|
}
|
|
|
|
artifacts {
|
|
archives sourcesJar
|
|
archives javadocJar
|
|
archives testJar
|
|
}
|
|
|
|
uploadArchives {
|
|
repositories {
|
|
mavenDeployer {
|
|
if (signingRequired) {
|
|
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
|
|
}
|
|
repository(url: project.sonatypeStagingUrl) {
|
|
if (sonatypeCredentialsAvailable) {
|
|
authentication(userName: sonatypeUsername, password: sonatypePassword)
|
|
}
|
|
}
|
|
snapshotRepository(url: project.sonatypeSnapshotUrl) {
|
|
if (sonatypeCredentialsAvailable) {
|
|
authentication(userName: sonatypeUsername, password: sonatypePassword)
|
|
}
|
|
}
|
|
|
|
pom.project {
|
|
name 'PGPainless'
|
|
description 'Simple to use OpenPGP API for Java based on Bouncycastle'
|
|
url 'https://github.com/pgpainless/pgpainless'
|
|
inceptionYear '2018'
|
|
|
|
scm {
|
|
url 'https://github.com/pgpainless/pgpainless'
|
|
connection 'scm:https://github.com/pgpainless/pgpainless'
|
|
developerConnection 'scm:git://github.com/pgpainless/pgpainless.git'
|
|
}
|
|
|
|
licenses {
|
|
license {
|
|
name 'The Apache Software License, Version 2.0'
|
|
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
|
|
distribution 'repo'
|
|
}
|
|
}
|
|
|
|
developers {
|
|
developer {
|
|
id 'vanitasvitae'
|
|
name 'Paul Schaub'
|
|
email 'vanitasvitae@fsfe.org'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
signing {
|
|
required { signingRequired }
|
|
sign configurations.archives
|
|
}
|
|
}
|
|
|