File tree Expand file tree Collapse file tree 4 files changed +12
-19
lines changed
src/main/kotlin/com/github/k0shk0sh/plugins Expand file tree Collapse file tree 4 files changed +12
-19
lines changed Original file line number Diff line number Diff line change @@ -16,10 +16,7 @@ buildscript {
1616plugins {
1717 id(AppPlugins .DOKKA ) version DependenciesVersion .DOKKA_VERSION
1818 id(AppPlugins .GITHUB_RELEASE ) version DependenciesVersion .GITHUB_RELEASE_VERSION
19- }
20-
21- apply {
22- plugin< com.github.k0shk0sh.plugins.LibVersionPlugin > ()
19+ `lib- version`
2320}
2421
2522subprojects {
@@ -75,13 +72,4 @@ fun Project.configureDokka() {
7572 outputDirectory.set(file(DokkaConfig .OUTPUT_DIR ))
7673 }
7774 }
78- }
79-
80- tasks.create(" minorRelease" ) {
81- dependsOn(" nextMinor" )
82- project.afterEvaluate {
83- dependsOn(" publishToMavenLocal" )
84- }
85- // .dependsOn("closeAndReleaseRepository")
86- // .dependsOn("githubRelease")
8775}
Original file line number Diff line number Diff line change @@ -4,6 +4,15 @@ plugins {
44 `kotlin- dsl`
55}
66
7+ gradlePlugin {
8+ plugins {
9+ register(" libVersion-plugin" ) {
10+ id = " lib-version"
11+ implementationClass = " com.github.k0shk0sh.plugins.LibVersionPlugin"
12+ }
13+ }
14+ }
15+
716repositories {
817 google()
918 mavenCentral()
Original file line number Diff line number Diff line change 1+ package com.github.k0shk0sh.plugins
2+
13import groovy.json.JsonOutput
24import groovy.json.JsonSlurper
35import java.io.File
Original file line number Diff line number Diff line change 11package com.github.k0shk0sh.plugins
22
33import org.gradle.api.*
4- import LibVersion
5- import LibVersionProvider
6- import increaseMajor
7- import increaseMinor
8- import increasePatch
9- import getLibVersion
104
115class LibVersionPlugin : Plugin <Project > {
126 override fun apply (target : Project ) {
You can’t perform that action at this time.
0 commit comments