Skip to content

Commit

Permalink
Merge pull request #255 from inversion-api/dev-0.9.x
Browse files Browse the repository at this point in the history
Version 0.9.27.2.2
  • Loading branch information
wellsb1 authored Oct 10, 2024
2 parents 9803013 + d0a1674 commit 2789295
Show file tree
Hide file tree
Showing 217 changed files with 179 additions and 83,877 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build-gradle-project.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#
# Resources
# - "Build with Gradle" Github Action: https://github.com/inversion-api/inversion-engine/new/main?filename=.github%2Fworkflows%2Fgradle.yml&workflow_template=ci%2Fgradle
# - "Executing Gradle builds on GitHub Actions" doco on Gradle.org: https://docs.gradle.org/current/userguide/github-actions.html
# - "How to Sign and Release to The Central Repository with GitHub Actions" : https://gist.github.com/sualeh/ae78dc16123899d7942bc38baba5203c
# - "Gradle Build Action" : https://github.com/marketplace/actions/gradle-build-action

name: Build Gradle project

on:
push:
branches: [ "release-*"]

jobs:
build-gradle-project:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 11
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Execute Gradle build
run: ./gradlew -Drelease=true build
- name: Publish to Sonotype and OSSRH
env:
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.OSSRH_SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.OSSRH_SIGNING_KEY_ID }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.OSSRH_SIGNING_PASSWORD }}
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.OSSRH_SONOTYPE_USERNAME }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.OSSRH_SONOTYPE_PASSWORD }}
run: |
./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository
35 changes: 0 additions & 35 deletions .travis.yml

This file was deleted.

49 changes: 31 additions & 18 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,18 @@ buildscript {
}

dependencies {
classpath 'com.netflix.nebula:gradle-aggregate-javadocs-plugin:2.2.+'
classpath 'com.netflix.nebula:gradle-aggregate-javadocs-plugin:3.0.1'
}
}

plugins {
id "java-library"
id "maven-publish"
id "signing"
id("io.github.gradle-nexus.publish-plugin") version "1.0.0"
id "java-library"
id "maven-publish"
id "signing"
//-- publishes to OSSRH and on to mavenCentral
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
//-- provides the "dependencyUpdates" task that reports available updates for your dependencies
id "com.github.ben-manes.versions" version "${dependencyUpdatesVersion}"
}
apply plugin: 'nebula-aggregate-javadocs'

Expand All @@ -49,7 +52,7 @@ task allJavadocs {
dependsOn 'aggregateJavadocs'
doLast {
ant.delete(dir: 'docs/javadoc/')
ant.move(file: 'build/docs/javadoc/', tofile: 'docs/javadoc/')
//ant.move(file: 'build/docs/javadoc/', tofile: 'docs/javadoc/')
}
}

Expand Down Expand Up @@ -91,13 +94,20 @@ subprojects {
sourceCompatibility = 1.8
targetCompatibility = 1.8

//./gradlew printSubDependencies --configuration runtimeClasspath
task printSubDependencies(type: DependencyReportTask) {}

repositories {
mavenCentral()
}

signing {
sign publishing.publications
}
signing {
def signingKeyId = findProperty("signingKeyId")
def signingKey = findProperty("signingKey")
def signingPassword = findProperty("signingPassword")
useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword)
sign publishing.publications
}

dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.6.0'
Expand Down Expand Up @@ -133,15 +143,18 @@ subprojects {
}
}

//causes a new ${subpoject}/pom.xml file to be generated after each build
gradle.buildFinished { buildResult ->
tasks.generatePomFileForMavenJavaPublication.doGenerate()
}
project.getGradle().getTaskGraph().whenReady {
tasks.withType(GenerateMavenPom.class) {
destination = file("$buildDir/../pom.xml")
}
}
//causes a new ${subpoject}/pom.xml file to be generated after each build
gradle.buildFinished { buildResult ->
if (Boolean.valueOf(System.getProperty("release"))) {
tasks.generatePomFileForMavenJavaPublication.doGenerate()
}

}
project.getGradle().getTaskGraph().whenReady {
tasks.withType(GenerateMavenPom.class) {
destination = file("$buildDir/../pom.xml")
}
}


publishing {
Expand Down
Binary file removed cd/codesigning.asc.enc
Binary file not shown.
3 changes: 0 additions & 3 deletions cd/gradle.properties.enc

This file was deleted.

Loading

0 comments on commit 2789295

Please sign in to comment.