Compare commits

..

6 Commits

Author SHA1 Message Date
2bccb1745a i give up, nexus another day i guess (#56) 2021-05-09 16:03:35 +00:00
b66c757c51 fuck u nexy (#55) 2021-05-09 11:54:23 -04:00
1e76a2382d maybe this (#54) 2021-05-09 11:45:09 -04:00
798ff553b5 maybe this (#53) 2021-05-09 11:36:10 -04:00
5b71adc323 maybe (#52) 2021-05-09 11:27:30 -04:00
5a038697bc hopefully will push and release to maven (#51) 2021-05-09 15:22:37 +00:00
5 changed files with 27 additions and 4 deletions

View File

@ -18,6 +18,6 @@ jobs:
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
restore-keys: ${{ runner.os }}-gradle
- name: Publish package
run: ./gradlew publish
run: ./gradlew publishAllPublicationsToGithubPackagesRepository
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -19,7 +19,12 @@ jobs:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }}
restore-keys: ${{ runner.os }}-gradle
- name: Publish package
run: ./gradlew publish -Prelease=true
- name: Publish packages to Github
run: ./gradlew publishAllPublicationsToGithubPackagesRepository -Prelease=true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Publish packages to Nexus
# run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository -Prelease=true
# env:
# SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
# SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}

View File

@ -1,5 +1,11 @@
# Changelog
## [1.0.0] - May 9th, 2021
### Added
- SonaType integration to publish to MavenCentral
### [1.0.0-rc] - May 8th, 2021
### Changed

View File

@ -2,6 +2,7 @@ plugins {
id("org.jetbrains.kotlin.jvm") version "1.4.32" apply false
id("io.gitlab.arturbosch.detekt") version "1.16.0-RC2" apply false
id("com.adarshr.test-logger") version "3.0.0" apply false
id("io.github.gradle-nexus.publish-plugin") version "1.1.0" apply true
}
allprojects {
@ -60,3 +61,14 @@ allprojects {
withSourcesJar()
}
}
nexusPublishing {
repositories {
sonatype {
username.set(System.getenv("SONATYPE_USER"))
password.set(System.getenv("SONATYPE_PASSWORD"))
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
}
}
}

View File

@ -1,5 +1,5 @@
# Kompendium
project.version=1.0.0-rc
project.version=1.0.0
# Kotlin
kotlin.code.style=official
# Gradle