-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
45 additions
and
20 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: Publish | ||
on: | ||
release: | ||
types: [released, prereleased] | ||
jobs: | ||
publish: | ||
name: Release build and publish | ||
runs-on: macOS-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
- name: Set up JDK 21 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'zulu' | ||
java-version: 21 | ||
- name: Publish to MavenCentral | ||
run: ./gradlew publishToMavenCentral | ||
env: | ||
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }} | ||
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} | ||
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.SIGNING_KEY_ID }} | ||
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }} | ||
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_KEY_CONTENTS }} | ||
|
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ import com.vanniktech.maven.publish.SonatypeHost | |
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi | ||
import org.jetbrains.kotlin.gradle.dsl.JvmTarget | ||
|
||
group = "io.github.pahill" | ||
group = "io.github.kotlin-hands-on" | ||
version = "1.0.6" | ||
|
||
plugins { | ||
|
@@ -40,7 +40,7 @@ kotlin { | |
} | ||
|
||
android { | ||
namespace = "io.github.pahill.fibonacci" | ||
namespace = "io.github.kotlinhandson.fibonacci" | ||
compileSdk = libs.versions.android.compileSdk.get().toInt() | ||
defaultConfig { | ||
minSdk = libs.versions.android.minSdk.get().toInt() | ||
|
@@ -52,13 +52,13 @@ mavenPublishing { | |
|
||
signAllPublications() | ||
|
||
coordinates("io.github.pahill", "fibonacci", "1.0.6") | ||
coordinates("io.github.kotlin-hands-on", "fibonacci", "1.0.6") | ||
|
||
pom { | ||
name.set("Fibonacci library") | ||
description.set("A description of what my library does.") | ||
inceptionYear.set("2024") | ||
url.set("https://github.com/pahill/fibonacci/") | ||
url.set("https://github.com/kotlin-hands-on/fibonacci/") | ||
licenses { | ||
license { | ||
name.set("The Apache License, Version 2.0") | ||
|
@@ -68,15 +68,15 @@ mavenPublishing { | |
} | ||
developers { | ||
developer { | ||
id.set("pahill") | ||
name.set("Pamela Hill") | ||
url.set("https://github.com/pahill/") | ||
id.set("kotlin-hands-on") | ||
name.set("Kotlin Developer Advocate") | ||
url.set("https://github.com/kotlin-hands-on/") | ||
} | ||
} | ||
scm { | ||
url.set("https://github.com/pahill/fibonacci/") | ||
connection.set("scm:git:git://github.com/pahill/fibonacci.git") | ||
developerConnection.set("scm:git:ssh://[email protected]/pahill/fibonacci.git") | ||
url.set("https://github.com/kotlin-hands-on/fibonacci/") | ||
connection.set("scm:git:git://github.com/kotlin-hands-on/fibonacci.git") | ||
developerConnection.set("scm:git:ssh://[email protected]/kotlin-hands-on/fibonacci.git") | ||
} | ||
} | ||
} |
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,4 +1,4 @@ | ||
package io.github.pahill.fibonacci | ||
package io.github.kotlinhandson.fibonacci | ||
|
||
actual val firstElement: Int = 1 | ||
actual val secondElement: Int = 2 |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package io.github.pahill.fibonacci | ||
package io.github.kotlinhandson.fibonacci | ||
|
||
actual val firstElement: Int = 3 | ||
actual val secondElement: Int = 4 |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package io.github.pahill.fibonacci | ||
package io.github.kotlinhandson.fibonacci | ||
|
||
actual val firstElement: Int = 2 | ||
actual val secondElement: Int = 3 |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package io.github.pahill.fibonacci | ||
package io.github.kotlinhandson.fibonacci | ||
|
||
actual val firstElement: Int = 3 | ||
actual val secondElement: Int = 5 |
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