Skip to content

Commit

Permalink
(fix) plugin version not shown correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Lori3f6 committed Aug 25, 2024
1 parent cd338b4 commit c5de236
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,25 @@ publishing {
}
}

// Custom tasks for publishing to specific repositories
tasks.register("publishToGithubPackage") {
dependsOn("publishMavenJavaPublicationToGithubPackageRepository")
// auto generated task: publish<PublicationName>PublicationTo<RepositoryName>Repository
}
tasks {
compileJava {
options.compilerArgs.add("-Xlint:deprecation")
options.encoding = "UTF-8"
}

processResources {
filesMatching("**/plugin.yml") {
expand("version" to project.version)
}
}

// Custom tasks for publishing to specific repositories
register("publishToGithubPackage") {
dependsOn("publishMavenJavaPublicationToGithubPackageRepository")
// auto generated task: publish<PublicationName>PublicationTo<RepositoryName>Repository
}

tasks.register("publishToNyaaCatCILocal") {
dependsOn("publishMavenJavaPublicationToNyaaCatCILocalRepository")
register("publishToNyaaCatCILocal") {
dependsOn("publishMavenJavaPublicationToNyaaCatCILocalRepository")
}
}

0 comments on commit c5de236

Please sign in to comment.