Skip to content

Commit 57e4292

Browse files
committed
Add plugin for releasing to maven central
1 parent ae10352 commit 57e4292

3 files changed

Lines changed: 23 additions & 9 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [1.4.0] - unreleased
88

9+
## [1.3.1] - 2021-02-26
10+
11+
* No changes, update deployment to Maven Central
12+
913
## [1.3.0] - 2021-02-22
1014

1115
### Breaking Changes

README.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@
66

77
Java API for managing FritzBox HomeAutomation using [AVM Home Automation HTTP Interface](https://avm.de/fileadmin/user_upload/Global/Service/Schnittstellen/AHA-HTTP-Interface.pdf) inspired by grundid's [fritzbox-java-api](https://github.com/grundid/fritzbox-java-api). This also runs on Android devices (see [Andect](https://github.com/kaklakariada/Andect)).
88

9+
## Important: Migration to Maven Central
10+
11+
Due to the [deprecation of JCenter](https://jfrog.com/blog/into-the-sunset-bintray-jcenter-gocenter-and-chartcenter/) new versions will be published to [Maven Central](https://search.maven.org/artifact/com.github.kaklakariada/fritzbox-java-api). In your build script please use
12+
13+
```groovy
14+
repositories {
15+
mavenCentral()
16+
}
17+
```
18+
919
## Changelog
1020

1121
See [CHANGELOG.md](CHANGELOG.md).
@@ -24,7 +34,7 @@ See [CHANGELOG.md](CHANGELOG.md).
2434
2535
```groovy
2636
dependencies {
27-
compile 'com.github.kaklakariada:fritzbox-java-api:1.3.0'
37+
compile 'com.github.kaklakariada:fritzbox-java-api:1.3.1'
2838
}
2939
```
3040
@@ -63,13 +73,8 @@ Install to local maven repository:
6373
3. Run the following command:
6474

6575
```bash
66-
$ ./gradlew clean check build publish --info
76+
$ ./gradlew clean check build publish closeAndReleaseRepository --info
6777
```
6878

6979
4. Create a new [release](https://github.com/kaklakariada/fritzbox-java-api/releases) on GitHub.
70-
5. Release the artifacts at Maven Central:
71-
1. Login at [oss.sonatype.org](https://oss.sonatype.org).
72-
2. Go to the [staging repositories](https://oss.sonatype.org/#stagingRepositories).
73-
3. Select repository named `comgithubkaklakariada-*` and click the "Close" button.
74-
4. When closing was successfull, click the "Release" button.
75-
5. After some time the release will be available at [Maven Central](https://repo1.maven.org/maven2/com/github/kaklakariada/fritzbox-java-api/).
80+
5. After some time the release will be available at [Maven Central](https://repo1.maven.org/maven2/com/github/kaklakariada/fritzbox-java-api/).

build.gradle

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@ plugins {
55
id "jacoco"
66
id "com.github.hierynomus.license" version "0.15.0"
77
id "org.sonarqube" version "3.1.1"
8+
id "io.codearte.nexus-staging" version "0.22.0"
89
}
910

1011
repositories {
1112
mavenCentral()
1213
}
1314

1415
group 'com.github.kaklakariada'
15-
version = '1.3.0'
16+
version = '1.3.1'
1617

1718
java {
1819
toolchain {
@@ -118,3 +119,7 @@ publishing {
118119
signing {
119120
sign publishing.publications.mavenJava
120121
}
122+
123+
nexusStaging {
124+
packageGroup = project.group
125+
}

0 commit comments

Comments
 (0)