Skip to content
This repository was archived by the owner on Nov 12, 2025. It is now read-only.

Commit a074d55

Browse files
authored
Merge pull request #6 from highmobility/fix-release
fix release package name
2 parents ea9ae4e + 21b102d commit a074d55

5 files changed

Lines changed: 22 additions & 56 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## [13.2.1]
4+
5+
### Fixed
6+
- Package name in Maven Central
7+
38
## [13.2.0]
49
- Update to latest [auto api branch](https://github.com/highmobility/auto-api/commit/06905522ba2c10c96bdd2899b4148ddc47a29a58)
510

auto-api-java/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id 'org.jetbrains.kotlin.jvm'
2+
id 'org.jetbrains.kotlin.jvm' version "$kotlinVersion"
33
}
44

55
sourceCompatibility = '1.8'
@@ -25,7 +25,7 @@ dependencies {
2525
api deps.utils
2626
}
2727

28-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlinVersion"
28+
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlinVersion"
2929
implementation 'org.slf4j:slf4j-api:1.7.25'
3030

3131
implementation deps.findBugs // for @Nullable

build.gradle

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
1-
buildscript {
2-
ext.kotlinVersion = "1.7.20"
3-
4-
repositories {
5-
mavenCentral()
6-
}
7-
}
8-
91
plugins {
10-
id 'org.jetbrains.kotlin.jvm' version "$kotlinVersion"
112
id "io.github.gradle-nexus.publish-plugin" version "1.1.0"
123
id 'net.researchgate.release' version '3.0.2'
134
}
@@ -19,6 +10,8 @@ nexusPublishing {
1910
}
2011

2112
ext {
13+
kotlinVersion = "1.7.20"
14+
2215
ver = [
2316
"hmkit-utils" : "1.4.5",
2417
"hmkit-auto-api": "13.2.0"

gradle/deploy-ossrh.gradle

Lines changed: 12 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ apply plugin: "maven-publish"
3232
apply plugin: 'signing'
3333
apply plugin: 'net.researchgate.release'
3434

35-
def deploySiteUrl="https://github.com/highmobility/auto-api-java"
36-
def deployGitUrl="https://github.com/highmobility/auto-api-java"
37-
def deployGroupId="com.high-mobility"
38-
def deployLicenseName="MIT"
39-
def deployLicenseUrl="https://opensource.org/licenses/MIT"
40-
def deployId=name
4135

42-
def isAndroid = project.plugins.findPlugin("com.android.library")
36+
def deploySiteUrl = "https://github.com/highmobility/auto-api-java"
37+
def deployGitUrl = "https://github.com/highmobility/auto-api-java"
38+
def deployLicenseName = "MIT"
39+
def deployLicenseUrl = "https://opensource.org/licenses/MIT"
40+
41+
def deployGroupId = "com.high-mobility"
42+
def deployId = "hmkit-auto-api"
4343

4444
// plugin net.researchgate.release(https://github.com/researchgate/gradle-release)
4545
// It updates the version and creates automatic commits
@@ -60,25 +60,13 @@ release {
6060
publishing {
6161
publications {
6262
release(MavenPublication) {
63-
64-
// get aar or jar for android/java libs
65-
if (isAndroid) {
66-
task sourceJar(type: Jar) {
67-
from android.sourceSets.main.java.srcDirs
68-
classifier "sources"
69-
}
70-
71-
artifact(sourceJar)
72-
artifact("$buildDir/outputs/aar/${deployId}-release.aar")
73-
} else {
74-
java {
75-
withJavadocJar()
76-
withSourcesJar()
77-
}
78-
79-
from components.java
63+
java {
64+
withJavadocJar()
65+
withSourcesJar()
8066
}
8167

68+
from components.java
69+
8270
groupId = deployGroupId
8371
artifactId = deployId
8472

@@ -110,26 +98,6 @@ publishing {
11098
developerConnection = deployGitUrl
11199
url = deploySiteUrl
112100
}
113-
114-
if (isAndroid) {
115-
// needed for .aar transitive dependencies
116-
withXml {
117-
def dependenciesNode = asNode()['dependencies'][0] ?: asNode().appendNode('dependencies')
118-
configurations.implementation.allDependencies.each {
119-
if (it.name != 'unspecified') {
120-
def dependencyNode = dependenciesNode.appendNode('dependency')
121-
dependencyNode.appendNode('groupId', it.group)
122-
dependencyNode.appendNode('artifactId', it.name)
123-
124-
if (it.version == "unspecified") {
125-
throw new GradleException("dependency version is unspecified " + "for $deployId submodule $it.name, node $it")
126-
} else {
127-
dependencyNode.appendNode('version', it.version)
128-
}
129-
}
130-
}
131-
}
132-
}
133101
}
134102
}
135103
}

gradle/deploy-process.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ Only patch number is incremented automatically on merge. To update major/minor,
1313
## Make a test release locally to staging
1414

1515
- comment out line `useInMemoryPgpKeys(signingKey, signingPassword)` in deploy-ossrh.gradle
16-
- Update version in `$projectRoot/gradle.properties` and call `./gradlew -Prelease :hmkit-fleet:publishToSonatype`.
16+
- Update version in `$projectRoot/gradle.properties` and call `./gradlew -Prelease :auto-api-java:publishToSonatype`.
1717
- Don't merge test version names to main

0 commit comments

Comments
 (0)