Skip to content

Commit

Permalink
Bump version and fix Javadoc/sources jars
Browse files Browse the repository at this point in the history
  • Loading branch information
srnyx committed Jun 22, 2023
1 parent 0ac9bac commit 257dc94
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
21 changes: 14 additions & 7 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ plugins {
}

group = "xyz.srnyx"
version = "1.0.0"
version = "1.0.1"
description = "A Gradle plugin to simplify the process of creating projects"
val pluginName = "Gradle Galaxy"
val vcs: String = "github.com/srnyx/${project.name}"
val projectId: String = "gradle-galaxy"
val vcs: String = "github.com/srnyx/$projectId"

tasks.withType<JavaCompile> {
sourceCompatibility = "1.8"
Expand All @@ -39,6 +39,13 @@ dependencies {
compileOnly("com.github.jengelman.gradle.plugins", "shadow", "6.1.0")
}

tasks {
build {
dependsOn("javadocJar")
dependsOn("sourcesJar")
}
}

// Add docs and sources jars
sourceSets {
val dokkaTask = tasks.getByName("dokkaHtml")
Expand All @@ -59,11 +66,11 @@ gradlePlugin {
website.set("https://${vcs}")
vcsUrl.set("https://${vcs}")
plugins {
create(project.name) {
id = "${project.group}.${project.name}"
create(projectId) {
id = "${project.group}.$projectId"
implementationClass = "${project.group}.gradlegalaxy.GradleGalaxy"
version = project.version
displayName = pluginName
displayName = project.name
description = project.description
tags.set(listOf("srnyx", "minecraft", "spigot"))
}
Expand All @@ -74,7 +81,7 @@ publishing {
publications {
create<MavenPublication>("pluginMaven") {
pom {
name.set(pluginName)
name.set(project.name)
description.set(project.description)
url.set("https://${vcs}")
packaging = "jar"
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
rootProject.name = "gradle-galaxy"
rootProject.name = "GradleGalaxy"

0 comments on commit 257dc94

Please sign in to comment.