Skip to content

Commit 667c6a3

Browse files
authored
Merge pull request #24 from ngageoint/mage-1603
[mage-1603] geopackage-android version 6.7.5
2 parents 10096a7 + df6497f commit 667c6a3

File tree

5 files changed

+89
-33
lines changed

5 files changed

+89
-33
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Publish and close to staging repo
2+
#Uploads to a new staging repository and closes it, making it available for viewing on the Maven portal
3+
#The repo will then need to be manually released on the portal before it is available on Maven Central
4+
on:
5+
release:
6+
types: [published]
7+
#manual triggering
8+
workflow_dispatch:
9+
10+
jobs:
11+
publish:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Set up JDK 17
18+
uses: actions/setup-java@v4
19+
with:
20+
java-version: '17'
21+
distribution: 'temurin'
22+
cache: 'gradle'
23+
24+
- name: Grant execute permission for gradlew
25+
run: chmod +x gradlew
26+
27+
- name: Publish and Close Sonatype Staging Repository
28+
env:
29+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
30+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
31+
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
32+
GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }}
33+
run: |
34+
# publishToSonatype: Uploads artifacts to a new staging repository.
35+
# closeSonatypeRepository: Closes the staging repository, running validations and making it visible in the portal.
36+
./gradlew publishToSonatype closeSonatypeStagingRepository --no-scan

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ Adheres to [Semantic Versioning](http://semver.org/).
44

55
---
66

7-
## 6.7.5 (TBD)
7+
## 6.7.5
88

9-
* TBD
9+
* geopackage-android version 6.7.5
1010

1111
## [6.7.4](https://github.com/ngageoint/geopackage-android-map/releases/tag/6.7.4) (04-05-2024)
1212

build.gradle

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,57 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22
buildscript {
3+
ext.kotlin_version = '1.8.20'
4+
35
repositories {
46
google()
57
mavenCentral()
68
mavenLocal()
9+
10+
711
}
812
dependencies {
9-
classpath 'com.android.tools.build:gradle:8.3.1'
10-
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
13+
classpath 'com.android.tools.build:gradle:8.3.2'
14+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1115
}
1216
}
1317

18+
plugins {
19+
id "io.github.gradle-nexus.publish-plugin" version "2.0.0"
20+
}
21+
1422
allprojects {
23+
group = "mil.nga.geopackage.map"
24+
version = "6.7.5"
25+
1526
repositories {
1627
google()
1728
mavenCentral()
1829
mavenLocal()
1930
}
2031
}
32+
33+
nexusPublishing {
34+
repositories {
35+
sonatype {
36+
nexusUrl = uri("https://ossrh-staging-api.central.sonatype.com/service/local/")
37+
38+
username = System.getenv("SONATYPE_USERNAME")
39+
password = System.getenv("SONATYPE_PASSWORD")
40+
}
41+
}
42+
}
43+
44+
subprojects {
45+
apply plugin: 'signing' //apply signing plugin to all subprojects
46+
47+
afterEvaluate {
48+
def signingKey = System.getenv("GPG_PRIVATE_KEY")
49+
def signingPassword = System.getenv("GPG_PASSWORD")
50+
if (signingKey != null && signingPassword != null) {
51+
signing {
52+
useInMemoryPgpKeys(signingKey, signingPassword)
53+
sign publishing.publications
54+
}
55+
}
56+
}
57+
}

geopackage-map/build.gradle

Lines changed: 10 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
apply plugin: 'com.android.library'
2-
apply plugin: 'maven-publish'
3-
apply plugin: 'signing'
1+
plugins {
2+
id "com.android.library"
3+
id "maven-publish"
4+
}
5+
46

5-
group = "mil.nga.geopackage.map"
67
archivesBaseName = "geopackage-android-map"
7-
version = "6.7.5"
88

99
android {
1010
namespace 'mil.nga.geopackage.map'
@@ -109,7 +109,7 @@ afterEvaluate {
109109

110110
groupId = group
111111
artifactId = archivesBaseName
112-
version = version
112+
113113
pom {
114114
name = 'GeoPackage Android Map'
115115
packaging = 'aar'
@@ -137,33 +137,16 @@ afterEvaluate {
137137

138138
developers {
139139
developer {
140-
id = 'bosborn'
141-
name = 'Brian Osborn'
142-
email = 'bosborn@caci.com'
143-
organizationUrl = 'https://www.caci.com/bit-systems'
140+
id = 'nruss11-om'
141+
name = 'Nathan Russell'
142+
email = 'nathan.russell@omnifederal.com'
143+
organizationUrl = 'https://omnifederal.com/'
144144
timezone = 'UTC-07'
145145
}
146146
}
147147
}
148148
}
149149
}
150-
repositories {
151-
maven {
152-
def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
153-
def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
154-
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
155-
def user = project.hasProperty('ossrhUsername') ? ossrhUsername : ""
156-
def pw = project.hasProperty('ossrhPassword') ? ossrhPassword : ""
157-
credentials {
158-
username = user
159-
password = pw
160-
}
161-
}
162-
}
163-
}
164-
165-
signing {
166-
sign publishing.publications.maven
167150
}
168151
}
169152

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Wed Mar 20 08:28:15 MDT 2024
1+
#Fri Oct 03 01:23:44 CDT 2025
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)