Skip to content

Commit d4772ab

Browse files
committed
1.8.20-1.0.0
1 parent 9a157f4 commit d4772ab

File tree

7 files changed

+25
-43
lines changed

7 files changed

+25
-43
lines changed

.github/scripts/publish.sh

100644100755
File mode changed.

.github/workflows/publish.yml

100644100755
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Publish
22

33
on:
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

.github/workflows/release.yml

100644100755
Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1-
name: Release
1+
---
2+
name: "Tagged Release"
23

34
on:
45
push:
5-
branches:
6-
- master
6+
tags:
7+
- "v*"
78

89
jobs:
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/[email protected]"
1516
with:
16-
bump_version_scheme: norelease
17+
repo_token: "${{ secrets.GITHUB_TOKEN }}"
18+
prerelease: false

Readme.md

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
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

65
This 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
```
106105
plugins {
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

build.gradle.kts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,15 @@
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-
101
plugins {
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

1810
subprojects {
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

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
kotlin.code.style=official
22

3-
VERSION_NAME=1.8.2
3+
VERSION_NAME=1.8.20-1.0.0
44

55
GROUP=com.bennyhuo.kotlin
66

settings.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
pluginManagement {
22
repositories {
3-
maven("https://mirrors.tencent.com/nexus/repository/maven-public")
3+
mavenCentral()
44
gradlePluginPortal()
55
}
66
}

0 commit comments

Comments
 (0)