Skip to content

Commit

Permalink
build!: drop the Eclipse plugin and switch to Gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
DanySK committed Nov 8, 2024
1 parent bd1df62 commit 88e4f54
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,15 @@ jobs:
os: [ windows, macos, ubuntu ]
runs-on: ${{ matrix.os }}-latest
timeout-minutes: 120
concurrency:
group: ${{ github.workflow }}-build-${{ matrix.os }}-${{ github.event.number || github.ref }}
cancel-in-progress: false
steps:
- name: Checkout
uses: DanySK/[email protected]
- uses: DanySK/[email protected]
with:
retries-on-failure: 3
build-command: >-
./gradlew build --parallel
# ./gradlew build --parallel
true
check-command: true
deploy-command: >-
./gradlew uploadAllPublicationsToMavenCentralNexus close drop --parallel
Expand All @@ -33,14 +31,14 @@ jobs:
&& !github.event.repository.fork
&& github.event_name != 'pull_request'
}}
gradle-publish-secret: ${{ secrets.GRADLE_PUBLISH_SECRET }}
gradle-publish-key: ${{ secrets.GRADLE_PUBLISH_KEY }}
maven-central-username: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
maven-central-password: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
signing-key: ${{ secrets.SIGNING_KEY }}
signing-password: ${{ secrets.SIGNING_PASSWORD }}
# Performs a release if needed
release:
permissions:
contents: write
needs:
- build
runs-on: ubuntu-latest
Expand Down Expand Up @@ -71,11 +69,7 @@ jobs:
npx semantic-release
should-run-codecov: false
should-deploy: true
custom-secret-0: ${{ secrets.SURGE_LOGIN }}
custom-secret-1: ${{ secrets.SURGE_TOKEN }}
github-token: ${{ secrets.DEPLOYMENT_TOKEN }}
gradle-publish-secret: ${{ secrets.GRADLE_PUBLISH_SECRET }}
gradle-publish-key: ${{ secrets.GRADLE_PUBLISH_KEY }}
maven-central-username: ${{ secrets.MAVEN_CENTRAL_USERNAME }}
maven-central-password: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}
signing-key: ${{ secrets.SIGNING_KEY }}
Expand Down
11 changes: 7 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@ plugins{
alias(libs.plugins.shadowJar)
}

allprojects {
group = "org.protelis"
}

val Provider<PluginDependency>.id get() = get().pluginId

subprojects {
repositories {
mavenCentral()
Expand All @@ -39,8 +44,6 @@ subprojects {
apply(plugin = multiJvmTesting.id)
}

group = "org.protelis"

val minJavaVersion = 11
multiJvm {
jvmVersionForCompilation.set(minJavaVersion)
Expand Down Expand Up @@ -111,8 +114,8 @@ subprojects {

if (System.getenv("CI") == true.toString()) {
signing {
val signingKey: String? by project
val signingPassword: String? by project
val signingKey: String by project
val signingPassword: String by project
useInMemoryPgpKeys(signingKey, signingPassword)
}
}
Expand Down

0 comments on commit 88e4f54

Please sign in to comment.