Fixed issue with sources missing from plugin and updated version
This commit is contained in:
parent
8978be4304
commit
47fa0d8ef3
|
@ -23,7 +23,7 @@ plugins {
|
||||||
`java-gradle-plugin`
|
`java-gradle-plugin`
|
||||||
|
|
||||||
id("com.gradle.plugin-publish") version "1.1.0"
|
id("com.gradle.plugin-publish") version "1.1.0"
|
||||||
id("com.dorkbox.GradleUtils") version "3.9"
|
id("com.dorkbox.GradleUtils") version "3.13"
|
||||||
|
|
||||||
kotlin("jvm") version "1.7.0"
|
kotlin("jvm") version "1.7.0"
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,7 @@ object Extras {
|
||||||
// set for the project
|
// set for the project
|
||||||
const val description = "Gradle Plugin to update version information and git tags within the Gradle project and java/kotlin files"
|
const val description = "Gradle Plugin to update version information and git tags within the Gradle project and java/kotlin files"
|
||||||
const val group = "com.dorkbox"
|
const val group = "com.dorkbox"
|
||||||
const val version = "2.6"
|
const val version = "2.7"
|
||||||
|
|
||||||
// set as project.ext
|
// set as project.ext
|
||||||
const val name = "Version Update"
|
const val name = "Version Update"
|
||||||
|
@ -51,6 +51,17 @@ GradleUtils.load("$projectDir/../../gradle.properties", Extras)
|
||||||
GradleUtils.defaults()
|
GradleUtils.defaults()
|
||||||
GradleUtils.compileConfiguration(JavaVersion.VERSION_1_8)
|
GradleUtils.compileConfiguration(JavaVersion.VERSION_1_8)
|
||||||
|
|
||||||
|
sourceSets {
|
||||||
|
main {
|
||||||
|
java {
|
||||||
|
setSrcDirs(listOf("src"))
|
||||||
|
|
||||||
|
// want to include kotlin and java files for the source. 'setSrcDirs' resets includes...
|
||||||
|
// NOTE: if we DO NOT do this, then there will not be any sources in the "plugin sources" jar, as it expects only java
|
||||||
|
include("**/*.kt", "**/*.java")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
// the kotlin version is taken from the plugin, so it is not necessary to set it here
|
// the kotlin version is taken from the plugin, so it is not necessary to set it here
|
||||||
|
|
Loading…
Reference in New Issue