-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Introduce the gradle-release plugin * Add RELEASE_OPERATIONS.md
- Loading branch information
1 parent
2b1a31c
commit d98d0d7
Showing
17 changed files
with
154 additions
and
370 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Release Operations | ||
|
||
## Run the Gradle release task | ||
|
||
The Gradle release task creates a release commit and push it to the origin/master branch. | ||
|
||
``` | ||
$ git checkout master | ||
$ git pull | ||
$ ./gradlew release -Prelease.releaseVersion=1.0.0 -Prelease.newVersion=1.1.0-SNAPSHOT | ||
``` | ||
|
||
The value of `release.releaseVersion` is decided by the draft name of | ||
[Releases](https://github.com/domaframework/doma/releases). | ||
|
||
## Build and Publish with GitHub Action | ||
|
||
(No operation required) | ||
|
||
The GitHub Action workflow [Java CI with Gradle](.github/workflows/ci.yml) handles the above push event | ||
and publishes to the [Gradle Plugin Portal](https://plugins.gradle.org/). | ||
|
||
## Publish release notes | ||
|
||
Open [Releases](https://github.com/domaframework/doma-compile-plugin/releases) | ||
and publish release notes. | ||
|
||
## Announce the release | ||
|
||
Announce the release of new version using Twitter. | ||
- [@domaframework](https://twitter.com/domaframework) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
plugins { | ||
base | ||
id("net.researchgate.release") version "2.8.1" | ||
} | ||
|
||
configure<net.researchgate.release.ReleaseExtension> { | ||
newVersionCommitMessage = "[Gradle Release Plugin] - [skip ci] new version commit: " | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.3.1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
plugins { | ||
id("groovy") | ||
id("java-gradle-plugin") | ||
id("com.diffplug.spotless") version "5.4.0" | ||
id("com.gradle.plugin-publish") version "0.11.0" | ||
} | ||
|
||
gradlePlugin { | ||
plugins { | ||
create("codegenPlugin") { | ||
id = "org.seasar.doma.codegen" | ||
displayName = "Doma Codegen Plugin" | ||
description = "Generates Java, Kotlin, and SQL files from Database" | ||
implementationClass = "org.seasar.doma.gradle.codegen.CodeGenPlugin" | ||
} | ||
} | ||
} | ||
|
||
pluginBundle { | ||
website = "https://github.com/domaframework/doma-codegen-plugin" | ||
vcsUrl = "https://github.com/domaframework/doma-codegen-plugin.git" | ||
tags = listOf("doma", "generator") | ||
} | ||
|
||
sourceSets { | ||
main { | ||
java { | ||
setSrcDirs(emptyList<String>()) | ||
} | ||
withConvention(GroovySourceSet::class) { | ||
groovy { | ||
setSrcDirs(listOf("src/main/groovy", "src/main/java")) | ||
} | ||
} | ||
} | ||
} | ||
|
||
spotless { | ||
java { | ||
googleJavaFormat("1.7") | ||
} | ||
groovy { | ||
} | ||
} | ||
|
||
java { | ||
sourceCompatibility = JavaVersion.VERSION_1_8 | ||
targetCompatibility = JavaVersion.VERSION_1_8 | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
mavenLocal() | ||
maven("https://oss.sonatype.org/content/repositories/snapshots/") | ||
} | ||
|
||
dependencies { | ||
implementation("org.freemarker:freemarker:2.3.30") | ||
testImplementation("org.seasar.doma:doma-core:2.41.0") | ||
testImplementation("org.junit.jupiter:junit-jupiter-api:5.6.2") | ||
testImplementation("org.junit.jupiter:junit-jupiter-params:5.6.1") | ||
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.6.2") | ||
} | ||
|
||
tasks { | ||
test { | ||
useJUnitPlatform() | ||
} | ||
|
||
groovydoc { | ||
enabled = false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
group=org.seasar.doma | ||
version=1.2.2-SNAPSHOT |
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.