File tree Expand file tree Collapse file tree 7 files changed +25
-43
lines changed
Expand file tree Collapse file tree 7 files changed +25
-43
lines changed Original file line number Diff line number Diff line change 11name : Publish
22
33on :
4- create :
4+ push :
55 tags :
6- - ' *'
6+ - ' v *'
77
88 # Allows you to run this workflow manually from the Actions tab
99 workflow_dispatch :
@@ -15,11 +15,11 @@ jobs:
1515 - name : Check out
1616 uses : actions/checkout@v2
1717
18- - name : Set up JDK 8
18+ - name : Set up JDK 11
1919 uses : actions/setup-java@v2
2020 with :
2121 distribution : ' zulu'
22- java-version : ' 8 '
22+ java-version : ' 11 '
2323
2424 - name : Build & Publish to Maven Central
2525 run : chmod +x .github/scripts/publish.sh && .github/scripts/publish.sh
Original file line number Diff line number Diff line change 1- name : Release
1+ ---
2+ name : " Tagged Release"
23
34on :
45 push :
5- branches :
6- - master
6+ tags :
7+ - " v* "
78
89jobs :
9- release-on-push :
10- runs-on : ubuntu-latest
11- env :
12- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
10+ tagged-release :
11+ name : " Tagged Release "
12+ runs-on : " ubuntu-latest "
13+
1314 steps :
14- - uses : rymndhng/release-on-push-action@master
15+ - uses : " marvinpinto/action-automatic-releases@v1.2.1 "
1516 with :
16- bump_version_scheme : norelease
17+ repo_token : " ${{ secrets.GITHUB_TOKEN }}"
18+ prerelease : false
Original file line number Diff line number Diff line change 11# Trim Indent
22
3- [ ![ Maven Central] ( https://maven-badges.herokuapp.com/maven-central/com.bennyhuo.kotlin/trimindent-gradle-plugin/badge.svg )] ( https://maven-badges.herokuapp.com/maven-central/com.bennyhuo.kotlin/trimindent-gradle-plugin )
4-
3+ [ ![ License: MIT] ( https://img.shields.io/badge/License-MIT-yellow.svg )] ( LICENSE ) [ ![ Maven Central] ( https://maven-badges.herokuapp.com/maven-central/com.bennyhuo.kotlin/trimindent-gradle-plugin/badge.svg )] ( https://maven-badges.herokuapp.com/maven-central/com.bennyhuo.kotlin/trimindent-gradle-plugin )
54
65This is a Kotlin compiler plugin for a compile-time indent trim of raw String. It is pretty useful for String templates with multiline String variables.
76
@@ -105,27 +104,16 @@ It is really useful when you use Kotlin String template as a template to render
105104```
106105plugins {
107106 ...
108- id("com.bennyhuo.kotlin.trimindent") version "1.8.0 "
107+ id("com.bennyhuo.kotlin.trimindent") version "<latest-version> "
109108}
110109```
111110
112- For snapshot:
111+ ## Change Log
113112
114- ```
115- buildscript {
116- repositories {
117- ...
118- maven("https://oss.sonatype.org/content/repositories/snapshots/")
119- }
120- }
113+ ### 1.8.20-1.0.0
121114
122- plugins {
123- ...
124- id("com.bennyhuo.kotlin.trimindent") version "1.8.1-SNAPSHOT"
125- }
126- ```
127-
128- ## Change Log
115+ * Use new version style.
116+ * Upgrade Kotlin to 1.8.20.
129117
130118### 1.8.0
131119
Original file line number Diff line number Diff line change 1- buildscript {
2- repositories {
3- maven(" https://mirrors.tencent.com/nexus/repository/maven-public" )
4- }
5- dependencies {
6- classpath(" com.vanniktech:gradle-maven-publish-plugin:0.22.0" )
7- }
8- }
9-
101plugins {
112 kotlin(" jvm" ) version " 1.8.20" apply false
123 id(" org.jetbrains.dokka" ) version " 1.7.10" apply false
134 id(" com.github.gmazzo.buildconfig" ) version " 2.1.0" apply false
5+ id(" com.vanniktech.maven.publish" ) version " 0.22.0" apply false
146 id(" com.bennyhuo.kotlin.plugin.embeddable" ) version " 1.8.1" apply false
157 id(" com.bennyhuo.kotlin.plugin.embeddable.test" ) version " 1.8.1" apply false
168}
179
1810subprojects {
1911 repositories {
20- maven( " https://mirrors.tencent.com/nexus/repository/maven-public " )
12+ mavenCentral( )
2113 maven(" https://oss.sonatype.org/content/repositories/snapshots/" )
2214 }
2315
Original file line number Diff line number Diff line change 11kotlin.code.style =official
22
3- VERSION_NAME =1.8.2
3+ VERSION_NAME =1.8.20-1.0.0
44
55GROUP =com.bennyhuo.kotlin
66
Original file line number Diff line number Diff line change 11pluginManagement {
22 repositories {
3- maven( " https://mirrors.tencent.com/nexus/repository/maven-public " )
3+ mavenCentral( )
44 gradlePluginPortal()
55 }
66}
You can’t perform that action at this time.
0 commit comments