You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,26 +72,26 @@ If you're ready to contribute code, see [the contribution guide](CONTRIBUTING.md
72
72
73
73
Per-commit debug builds can be found on [CircleCI](https://circleci.com/gh/getodk/javarosa). Login with your GitHub account, click the build you'd like, then find the JAR in the Artifacts tab under $CIRCLE_ARTIFACTS.
74
74
75
-
### Publishing the jar to OSSRH and Maven Central
75
+
### Publishing the jar to Central Repository and Maven Central
76
76
77
-
Project maintainers have the private keys to upload signed jars to Sonatype's OSS Repository Hosting (OSSRH) service which is then synced to Maven's Central Repository. This process is [outlined here](http://central.sonatype.org/pages/apache-maven.html).
77
+
Project maintainers have the private keys to upload signed jars to Sonatype's Central Repository which is then synced to Maven Central. This process is [outlined here](https://central.sonatype.org).
78
78
79
-
While Gradle is the default build tool for all ODK tools (including this one), Maven is used for for publishing the jar because OSSRH's Gradle support is unreliable (e.g., snapshots don't always update). This means version and dependency changes must be made in both `build.gradle` and `pom.xml`.
79
+
While Gradle is the default build tool for all ODK tools (including this one), Maven is used for for publishing the jar because Sonatype's Gradle support is unreliable (e.g., snapshots don't always update). This means version and dependency changes must be made in both `build.gradle` and `pom.xml`.
80
80
81
-
Deviations from OSSRH's documentation are that maintainers use `gpg2` v2.1 and greater (not `gpg`), the latest versions of the Maven plugins in `pom.xml`, and a `secrets.xml` file that include the GPG home directory, key name, and pass phrase. All that is needed in the GPG home directory is `private-keys-v1.d` and `pubring.gpg`.
81
+
Deviations from Sonatype's documentation are that maintainers use `gpg2` v2.1 and greater (not `gpg`), the latest versions of the Maven plugins in `pom.xml`, and a `secrets.xml` file that include the GPG home directory, key name, and pass phrase. All that is needed in the GPG home directory is `private-keys-v1.d` and `pubring.gpg`.
82
82
```
83
83
<!-- secrets.xml -->
84
84
<settings>
85
85
<servers>
86
86
<server>
87
-
<id>ossrh</id>
87
+
<id>central</id>
88
88
<username>getodk</username>
89
89
<password>very-secure-password</password>
90
90
</server>
91
91
</servers>
92
92
<profiles>
93
93
<profile>
94
-
<id>ossrh</id>
94
+
<id>central</id>
95
95
<activation>
96
96
<activeByDefault>true</activeByDefault>
97
97
</activation>
@@ -108,13 +108,13 @@ Deviations from OSSRH's documentation are that maintainers use `gpg2` v2.1 and g
108
108
109
109
Official releases are built by a Github action when a commit is tagged. Before tagging a release:
110
110
111
-
1. Update the version in `build.gradle` and `pom.xml` and merge the changes to master.
111
+
1. Update the version in `pom.xml` and merge the changes to master.
112
112
* Use `x.x.x-SNAPSHOT` for snapshots releases and `x.x.x` for production releases.
113
113
114
114
To manually generate official signed releases, you'll need the GPG folder, GPG passwords, a configured `secrets.xml` file.
115
115
1. Run `mvn -v` to confirm the Java version and vendor used to build the release.
116
116
1. In the repo folder, run `mvn -s secrets.xml clean deploy` to publish.
117
-
* If successful, both snapshots and production releases will appear in OSSRH[here](https://oss.sonatype.org/content/groups/public/org/getodk/javarosa/).
118
-
* Production releases are automatically synced to Central[here](https://search.maven.org/#search%7Cga%7C1%7Ca%3A%22javarosa%22) a few hours later.
117
+
* If successful, both snapshots and production releases will appear in Sonatype[here](https://central.sonatype.com/artifact/org.getodk/javarosa).
118
+
* Production releases are automatically synced to Maven[here](https://search.maven.org/#search%7Cga%7C1%7Ca%3A%22javarosa%22) a few hours later.
119
119
120
120
Don't forget to update the `build.gradle` files in any downstream tools (e.g., ODK Collect, ODK Briefcase) to the newest version!
0 commit comments