-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from ReneeVandervelde/release-updates
Stabilize API for release
- Loading branch information
Showing
30 changed files
with
1,045 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
name: Pull Request | ||
name: PR Checks | ||
on: [pull_request] | ||
jobs: | ||
tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].4 | ||
- | ||
name: Unit Tests | ||
run: ./gradlew build jvmTest | ||
name: Checks | ||
run: ./gradlew check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,87 @@ | ||
on: | ||
push: | ||
tags: ['*'] | ||
name: Release | ||
on: | ||
push: | ||
tags: ['*'] | ||
env: | ||
GITHUB_TAG: ${{ github.ref }} | ||
jobs: | ||
build: | ||
tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/[email protected] | ||
- | ||
name: Configure Java | ||
uses: actions/[email protected] | ||
with: | ||
java-version: 17 | ||
distribution: oracle | ||
- | ||
name: Tests | ||
run: ./gradlew check | ||
linux: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/[email protected] | ||
uses: actions/[email protected] | ||
- | ||
name: Configure Java | ||
uses: actions/[email protected] | ||
with: | ||
java-version: 17 | ||
distribution: oracle | ||
- | ||
name: Maven Publish | ||
env: | ||
GITHUB_TAG: ${{ github.ref }} | ||
ORG_GRADLE_PROJECT_mavenUser: ${{ secrets.MAVEN_CENTRAL_USERNAME }} | ||
ORG_GRADLE_PROJECT_mavenPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} | ||
ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.PGP_INK_CI_KEYID }} | ||
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.PGP_INK_CI_PRIVATE }} | ||
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.PGP_INK_CI_PASSWORD }} | ||
run: > | ||
./gradlew | ||
publishKotlinMultiplatformPublicationToMavenCentralRepository | ||
publishLinuxX64PublicationToMavenCentralRepository | ||
publishLinuxArm64PublicationToMavenCentralRepository | ||
publishJsPublicationToMavenCentralRepository | ||
publishJvmPublicationToMavenCentralRepository | ||
-Pversion=${GITHUB_TAG/refs\/tags\//} | ||
macos: | ||
runs-on: macos-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/[email protected] | ||
- | ||
name: Build | ||
run: ./gradlew build | ||
name: Configure Java | ||
uses: actions/[email protected] | ||
with: | ||
java-version: 17 | ||
distribution: oracle | ||
- | ||
name: Publish | ||
name: Maven Publish | ||
env: | ||
GITHUB_TAG: ${{ github.ref }} | ||
ORG_GRADLE_PROJECT_mavenUser: ${{ secrets.MAVEN_CENTRAL_USERNAME }} | ||
ORG_GRADLE_PROJECT_mavenPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} | ||
ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.PGP_INK_CI_KEYID }} | ||
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.PGP_INK_CI_PRIVATE }} | ||
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.PGP_INK_CI_PASSWORD }} | ||
run: ./gradlew publishAllPublicationsToMavenCentralRepository -Pversion=${GITHUB_TAG/refs\/tags\//} | ||
run: > | ||
./gradlew | ||
publishMacosX64PublicationToMavenCentralRepository | ||
publishMacosArm64PublicationToMavenCentralRepository | ||
publishIosSimulatorArm64PublicationToMavenCentralRepository | ||
publishIosX64PublicationToMavenCentralRepository | ||
publishWatchosSimulatorArm64PublicationToMavenCentralRepository | ||
publishWatchosX64PublicationToMavenCentralRepository | ||
publishWatchosArm32PublicationToMavenCentralRepository | ||
publishWatchosArm64PublicationToMavenCentralRepository | ||
publishTvosSimulatorArm64PublicationToMavenCentralRepository | ||
publishTvosX64PublicationToMavenCentralRepository | ||
publishTvosArm64PublicationToMavenCentralRepository | ||
publishIosArm64PublicationToMavenCentralRepository | ||
-Pversion=${GITHUB_TAG/refs\/tags\//} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,12 +3,18 @@ on: | |
push: | ||
branches: [master] | ||
jobs: | ||
build: | ||
tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].4 | ||
- | ||
name: Build | ||
run: ./gradlew build jvmTest | ||
name: Configure Java | ||
uses: actions/[email protected] | ||
with: | ||
java-version: 17 | ||
distribution: oracle | ||
- | ||
name: Tests | ||
run: ./gradlew check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Change Log | ||
========== | ||
|
||
1.0.0 | ||
----- | ||
|
||
### New | ||
|
||
- Releases for Structures, Codec and client libraries! | ||
- API is considered stable for the structures, codec and client libraries. | ||
- CLI tool is available for generating APRS-IS codes and parsing files. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
plugins { | ||
id("maven-publish") | ||
id("signing") | ||
id("org.jetbrains.dokka") | ||
id("org.jetbrains.kotlinx.binary-compatibility-validator") | ||
} | ||
|
||
val dokkaHtml by tasks.getting(org.jetbrains.dokka.gradle.DokkaTask::class) | ||
|
||
val javadocJar: TaskProvider<Jar> by tasks.registering(Jar::class) { | ||
dependsOn(dokkaHtml) | ||
archiveClassifier.set("javadoc") | ||
from(dokkaHtml.outputDirectory) | ||
} | ||
|
||
publishing { | ||
repositories { | ||
val mavenUser = findProperty("mavenUser")?.toString() | ||
val mavenPassword = findProperty("mavenPassword")?.toString() | ||
if (mavenUser != null && mavenPassword != null) { | ||
maven { | ||
name = "MavenCentral" | ||
setUrl("https://oss.sonatype.org/service/local/staging/deploy/maven2/") | ||
credentials { | ||
username = mavenUser | ||
password = mavenPassword | ||
} | ||
} | ||
} | ||
} | ||
publications { | ||
withType<MavenPublication> { | ||
artifact(javadocJar) | ||
pom { | ||
name.set("ACK ${project.name}") | ||
description.set("APRS Client for Kotlin") | ||
url.set("https://ack.inkapplications.com") | ||
licenses { | ||
license { | ||
name.set("MIT") | ||
url.set("https://choosealicense.com/licenses/mit/") | ||
} | ||
} | ||
developers { | ||
developer { | ||
id.set("reneevandervelde") | ||
name.set("Renee Vandervelde") | ||
email.set("[email protected]") | ||
} | ||
} | ||
scm { | ||
connection.set("scm:git:https://github.com/InkApplications/ack.git") | ||
developerConnection.set("scm:git:ssh://[email protected]:InkApplications/ack.git") | ||
url.set("https://github.com/InkApplications/ack") | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
signing { | ||
val signingKey = findProperty("signingKey")?.toString() | ||
val signingKeyId = findProperty("signingKeyId")?.toString() | ||
val signingPassword = findProperty("signingPassword")?.toString() | ||
val shouldSign = signingKeyId != null && signingKey != null && signingPassword != null | ||
|
||
if (shouldSign) { | ||
useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword) | ||
sign(publishing.publications) | ||
} | ||
} | ||
|
||
val signingTasks: TaskCollection<Sign> = tasks.withType<Sign>() | ||
tasks.withType<PublishToMavenRepository>().configureEach { | ||
mustRunAfter(signingTasks) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
plugins { | ||
kotlin("multiplatform") | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
kotlin { | ||
jvmToolchain(11) | ||
jvm() | ||
// js(IR) { | ||
// nodejs() | ||
// browser() | ||
// browser { | ||
// testTask { | ||
// useKarma { | ||
// useFirefoxHeadless() | ||
// } | ||
// } | ||
// } | ||
// } | ||
macosX64() | ||
macosArm64() | ||
iosSimulatorArm64() | ||
iosX64() | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
plugins { | ||
kotlin("multiplatform") | ||
id("multiplatform.tier1") | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
kotlin { | ||
linuxX64() | ||
linuxArm64() | ||
watchosSimulatorArm64() | ||
watchosX64() | ||
watchosArm32() | ||
watchosArm64() | ||
tvosSimulatorArm64() | ||
tvosX64() | ||
tvosArm64() | ||
iosArm64() | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
plugins { | ||
kotlin("multiplatform") | ||
id("multiplatform.tier2") | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
kotlin { | ||
androidNativeArm32() | ||
androidNativeArm64() | ||
androidNativeX86() | ||
androidNativeX64() | ||
mingwX64() | ||
watchosDeviceArm64() | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.