Skip to content

Commit

Permalink
Add details to fx2j-gradle-plugin pom
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheikah45 committed Oct 23, 2023
1 parent 07c7b73 commit 668be32
Show file tree
Hide file tree
Showing 6 changed files with 81 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ import java.time.OffsetDateTime
import java.time.format.DateTimeFormatter

plugins {
`maven-publish`
java

id("io.github.sheikah45.fx2j.conventions-repository")
signing
`maven-publish`
publishing
}

group = "io.github.sheikah45.fx2j"

val buildTimeAndDate: OffsetDateTime by lazy {
OffsetDateTime.now()
}
Expand Down Expand Up @@ -78,4 +80,24 @@ publishing {
}
}
}
}

publishing {
repositories {
maven {
url = uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
credentials {
username = project.properties["sonatypeUsername"].toString()
password = project.properties["sonatypePassword"].toString()
}
}
}
}


signing {
publishing.publications.configureEach {
sign(this)
}
sign(configurations.archives.get())
}

This file was deleted.

4 changes: 2 additions & 2 deletions fx2j-api/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
project_description=A library that provides a loader for views from Fx2j Builders
project_display_name=API for loading views using Fx2j Builders
project_description=Library that provides a loader for views from Fx2j Builders
project_display_name=Fx2j API
51 changes: 50 additions & 1 deletion fx2j-gradle-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
plugins {
`maven-publish`

id("com.gradle.plugin-publish") version "1.2.1"

id("io.github.sheikah45.fx2j.conventions-repository")
id("io.github.sheikah45.fx2j.conventions-publish")
id("io.github.sheikah45.fx2j.conventions-java")
}

Expand All @@ -26,3 +28,50 @@ gradlePlugin {
}
}
}

afterEvaluate {
tasks.named<Sign>("signPluginMavenPublication") {
this.enabled = false
}
tasks.named<PublishToMavenRepository>("publishPluginMavenPublicationToMavenRepository").configure {
this.enabled = false
}
tasks.named<PublishToMavenLocal>("publishPluginMavenPublicationToMavenLocal").configure {
this.enabled = false
}

publishing.publications {
this.named<MavenPublication>("fx2jPluginPluginMarkerMaven").configure {
this.pom {
url.set(project.properties["project_website"].toString())
issueManagement {
system.set("GitHub")
url.set(project.properties["project_issues"].toString())
}
scm {
url.set(project.properties["project_website"].toString())
connection.set("scm:git:${project.properties["project_vcs"].toString()}")
developerConnection.set("scm:git:[email protected]:sheikah45/fx2j.git")
}
licenses {
license {
name.set("The MIT License (MIT)")
url.set("http://www.opensource.org/licenses/mit-license.php")
distribution.set("repo")
}
}
developers {
developer {
id.set("Sheikah45")
name.set("Sheikah45")
organization {
name.set("Personal")
url.set("https://github.com/Sheikah45")
}
}
}
}
}
}

}
4 changes: 2 additions & 2 deletions fx2j-gradle-plugin/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
project_description=A plugin that writes a java builder for the fxml file that can be loaded using the fx2j api
project_display_name=Plugin for compiling FXML to Java
project_description=Plugin that writes a java builder for the fxml file that can be loaded using the fx2j api
project_display_name=Fx2j Gradle Plugin
4 changes: 2 additions & 2 deletions fx2j-processor/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
project_description=A library that prcoesses a set of FXML files into Java builder source and/or class files
project_display_name=Librarty for converting FXML to Java
project_description=Library that processes a set of FXML files into Java builder source and/or class files
project_display_name=Fx2j Processor

0 comments on commit 668be32

Please sign in to comment.