Skip to content

Commit e485f16

Browse files
committed
bump 0.2 java 11 compatability and dependency upgrades
1 parent 780d28e commit e485f16

File tree

7 files changed

+44
-24
lines changed

7 files changed

+44
-24
lines changed

README.adoc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
= Semantic Version Gradle Plugin
22

3-
Determines patch version based on what already exists in maven repository. More info in link:https://semantic-version.gradle.poolside.dev/[docs]. link:https://plugins.gradle.org/plugin/dev.poolside.gradle.semantic-version[Plugin].
3+
* link:https://semantic-version.gradle.poolside.dev/[docs]
4+
* link:https://plugins.gradle.org/plugin/dev.poolside.gradle.semantic-version[plugin site]
45
5-
== Usage
6+
tldr: determines and sets patch version based on what already exists in maven repository.
67

78
[source,kotlin]
89
----

antora-playbook.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ output:
99
clean: true
1010
ui:
1111
bundle:
12-
url: https://github.com/countableSet/antora-ui/releases/download/b2593412518/ui-bundle.zip
12+
url: https://github.com/countableSet/antora-ui/releases/download/b4696819400/ui-bundle.zip
1313
snapshot: true
1414
supplemental_files:
1515
- path: partials/header-content.hbs

build.gradle.kts

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,45 +2,43 @@ plugins {
22
`java-gradle-plugin`
33
`kotlin-dsl`
44
`maven-publish`
5-
id("com.gradle.plugin-publish") version "1.0.0-rc-1"
5+
id("com.gradle.plugin-publish") version "1.2.0"
66
}
77

88
repositories {
99
mavenCentral()
1010
}
1111

1212
dependencies {
13-
testImplementation(platform("org.junit:junit-bom:5.8.2"))
13+
testImplementation(platform("org.junit:junit-bom:5.9.2"))
1414
testImplementation("org.junit.jupiter:junit-jupiter")
1515
testImplementation("org.junit.jupiter:junit-jupiter-params")
16-
testImplementation("com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.13.3")
17-
testImplementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.13.3")
18-
}
19-
20-
pluginBundle {
21-
website = "https://semantic-version.gradle.poolside.dev"
22-
vcsUrl = "https://github.com/countableSet/semantic-version-plugin"
23-
description = "Based on a given major.minor version, plugin determines patch version based on what is already " +
24-
"maven repository by auto incrementing it to produce the next version number. Major or minor versions " +
25-
"must be manually changed"
26-
tags = listOf("semantic version", "maven", "publish", "auto increment")
16+
testImplementation("com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.14.2")
17+
testImplementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.14.2")
2718
}
2819

2920
gradlePlugin {
21+
website.set("https://semantic-version.gradle.poolside.dev")
22+
vcsUrl.set("https://github.com/countableSet/semantic-version-plugin")
23+
3024
plugins {
3125
create("semanticVersionPlugin") {
3226
id = "dev.poolside.gradle.semantic-version"
3327
group = "dev.poolside.gradle.semanticversion"
3428
implementationClass = "dev.poolside.gradle.semanticversion.SemanticVersionPlugin"
35-
version = "0.1.5"
29+
version = "0.2.0"
3630
displayName = "Poolside Semantic Version Plugin"
31+
description = "Based on a given major.minor version, plugin determines patch version based on what is already " +
32+
"maven repository by auto incrementing it to produce the next version number. Major or minor versions " +
33+
"must be manually changed"
34+
tags.set(listOf("semantic version", "maven", "publish", "auto increment"))
3735
}
3836
}
3937
}
4038

4139
java {
42-
sourceCompatibility = JavaVersion.VERSION_1_8
43-
targetCompatibility = JavaVersion.VERSION_1_8
40+
sourceCompatibility = JavaVersion.VERSION_11
41+
targetCompatibility = JavaVersion.VERSION_11
4442
}
4543

4644
tasks {
@@ -51,6 +49,6 @@ tasks {
5149
}
5250
}
5351
withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
54-
kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8.toString()
52+
kotlinOptions.jvmTarget = JavaVersion.VERSION_11.toString()
5553
}
5654
}

docs/modules/ROOT/pages/index.adoc

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,29 @@
11
= Home
2-
:version: 0.1.3
2+
:version: 0.2.0
33

4-
Gradle plugin to auto-increment patch version on each call to `publish` task by looking up the most recent version published in the configured maven repository.
4+
Gradle plugin to auto-increments the patch version on each call to the `publish` task by looking up the most recent version published in the publishing maven repository and adds it by one.
5+
6+
Tested to work in the following scenarios:
7+
8+
. Single root project publication
9+
. Single and multiple subprojects publication
10+
. BOM references via `api(platform(project(":bom")))` and `java-platform` plugin
11+
. Manual versioning, prevents the task from publishing if the version isn't different from the one in maven
512

613
image::semantic-version-plugin.svg[]
714

15+
== Change Log
16+
17+
* 0.2.x compatible with Java 11
18+
** 0.2.0 set compatability to Java 11, bump dependency versions, and upgrade gradle to 8.1
19+
* 0.1.x compatible with Java 8
20+
** 0.1.5 fix bug when the plugin wasn't applying correct to root projects without jars
21+
** 0.1.4 fix bug when major or minor version was bump was computed incorrectly
22+
** 0.1.3 adds manual mode flag to skip publishing when artifact already exists
23+
** 0.1.2 fix bug with version finder
24+
** 0.1.1 unknown
25+
** 0.1.0 unknown
26+
827
== Import
928

1029
link:https://plugins.gradle.org/plugin/dev.poolside.gradle.semantic-version[Plugins Page]

gradle/wrapper/gradle-wrapper.jar

285 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

src/test/kotlin/dev/poolside/gradle/semanticversion/SemanticVersionPluginTest.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ class SemanticVersionPluginTest {
2626
@JvmStatic
2727
private fun gradleVersions(): Stream<Arguments> = Stream.of(
2828
Arguments.of("7.4.2"),
29-
Arguments.of("7.5.1")
29+
Arguments.of("7.5.1"),
30+
Arguments.of("7.6.1"),
31+
Arguments.of("8.1")
3032
)
3133
}
3234

0 commit comments

Comments
 (0)