Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post release #86

Merged
merged 2 commits into from
Jan 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 11 additions & 21 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ allprojects {
release {
tagTemplate = '$name-$version'
git {
requireBranch = '2.x'
requireBranch = ''
}
// Don't automatically push up the changes.
pushReleaseVersionBranch = false
}

afterReleaseBuild.dependsOn uploadArchives
afterReleaseBuild.dependsOn publish
}

subprojects {
Expand All @@ -46,6 +48,8 @@ subprojects {
java {
sourceCompatibility(JavaVersion.VERSION_11)
targetCompatibility(JavaVersion.VERSION_11)
withJavadocJar()
withSourcesJar()
}

ext {
Expand All @@ -54,6 +58,7 @@ subprojects {
inceptionYear = '2015'
docURL = 'https://islandora.github.io/documentation/'
license = 'MIT'
projectHomepage = 'https://github.com/Islandora/Alpaca'

versions = [
activemq: '5.16.0',
Expand Down Expand Up @@ -83,21 +88,6 @@ subprojects {
projectOsgiVersion = project.version.replaceAll("-SNAPSHOT", ".SNAPSHOT")
}

task sourceJar(type: Jar) {
classifier 'sources'
from sourceSets.main.allSource
}

task javadocJar(type: Jar) {
classifier 'javadoc'
from javadoc
}

artifacts {
archives javadocJar
archives sourceJar
}

checkstyle {
config = resources.text.fromFile("${rootProject.projectDir}/gradle/checkstyle/checkstyle.xml")
configProperties("checkStyleDir": "${rootProject.projectDir}/gradle/checkstyle")
Expand Down Expand Up @@ -140,13 +130,13 @@ subprojects {
}
}
publications {
maven(MavenPublication) {
shadow(MavenPublication) {
from components.java
pom {
setPackaging('jar')
inceptionYear = project.inceptionYear
name = 'Islandora :: Alpaca'
description = 'Event driven middleware based on Apache Camel that synchronizes a Fedora with Drupal.'
url = project.projectHomepage

organization {
name = project.vendor
Expand Down Expand Up @@ -208,8 +198,8 @@ subprojects {
}

signing {
required { !version.endsWith("SNAPSHOT") && gradle.taskGraph.hasTask("uploadArchives") }
sign configurations.archives
required { !version.endsWith("SNAPSHOT") && gradle.taskGraph.hasTask("publish") }
sign publishing.publications.shadow
}

tasks.named('test') {
Expand Down
Loading