Skip to content

Commit

Permalink
Provide artifact name and description for each module required during…
Browse files Browse the repository at this point in the history
… publishing
  • Loading branch information
besidev committed Oct 30, 2024
1 parent 32931ae commit 9a078ba
Show file tree
Hide file tree
Showing 21 changed files with 221 additions and 85 deletions.
30 changes: 21 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ configure(subprojects.findAll { it.name != 'example' }) {

configure([project("tree-showing"), project("jpro-auth:core"), project("jpro-auth:routing"), project("jpro-file"),
project("jpro-image-manager"), project("jpro-mail"), project("jpro-mdfx"), project("jpro-media"),
project("jpro-scenegraph"), project("jpro-session"),
project("jpro-scenegraph"), project("jpro-session"), project("jpro-sipjs"),
project("jpro-html-scrollpane"), project("freeze-detector"), project("jpro-routing:core"),
project("jpro-routing:dev"), project("jpro-routing:popup"), project("jpro-webrtc"), project("jpro-youtube"),
project("internal:openlink"), project("internal:util")]) {
Expand All @@ -103,13 +103,25 @@ configure([project("tree-showing"), project("jpro-auth:core"), project("jpro-aut
from components.java

pom {
url = 'https://www.jpro.one'

licenses {
license {
name = 'Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}

developers {
developer {
id = 'jpro'
name = 'JPro Team'
email = '[email protected]'
organization = 'JPro-one'
organizationUrl = 'https://www.jpro.one'
}
}

scm {
connection = 'scm:git:https://github.com/JPro-one/jpro-platform.git'
developerConnection = 'scm:git:https://github.com/JPro-one/jpro-platform.git'
Expand All @@ -130,14 +142,14 @@ configure([project("tree-showing"), project("jpro-auth:core"), project("jpro-aut
}

repositories {
maven {
name = "artifactory"
url = "https://sandec.jfrog.io/artifactory/repo"
credentials {
username System.getenv("SANDEC_ARTIFACTORY_USERNAME")
password System.getenv("SANDEC_ARTIFACTORY_PASSWORD")
}
}
// maven {
// name = "artifactory"
// url = "https://sandec.jfrog.io/artifactory/repo"
// credentials {
// username System.getenv("SANDEC_ARTIFACTORY_USERNAME")
// password System.getenv("SANDEC_ARTIFACTORY_PASSWORD")
// }
// }
maven {
name = 'publish-bundle'
url = layout.buildDirectory.dir('publish-bundle')
Expand Down
31 changes: 10 additions & 21 deletions ensemble/samples/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,13 @@ javafx {
modules = [ 'javafx.graphics', 'javafx.controls','javafx.swing', 'javafx.fxml', 'javafx.media', 'javafx.web' ]
}

apply plugin: 'maven-publish'
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
groupId "one.jpro.samples"
artifactId project.name
version JPRO_PLATFORM_VERSION
}
}
repositories {
maven {
name = "artifactory"
url = "https://sandec.jfrog.io/artifactory/repo"
credentials {
username System.getenv("SANDEC_ARTIFACTORY_USERNAME")
password System.getenv("SANDEC_ARTIFACTORY_PASSWORD")
}
}
}
}
//publishing {
// publications {
// mavenJava(MavenPublication) {
// from components.java
// groupId "one.jpro.samples"
// artifactId project.name
// version JPRO_PLATFORM_VERSION
// }
// }
//}
12 changes: 12 additions & 0 deletions freeze-detector/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,15 @@ test {
"--add-exports", "javafx.base/com.sun.javafx.logging=org.testfx.monocle"
]
}

publishing {
publications {
mavenJava(MavenPublication) {
pom {
name = 'Freeze Detector'
description = 'A module that allows you to track whether the JavaFX Application Thread is frozen for ' +
'a given time, useful for debugging purposes, detecting deadlocks, or optimizing performance.'
}
}
}
}
11 changes: 11 additions & 0 deletions internal/openlink/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,15 @@ dependencies {
testImplementation("org.mockito:mockito-core:$MOCKITO_VERSION")
testImplementation("org.mockito:mockito-junit-jupiter:$MOCKITO_VERSION")
testRuntimeOnly "ch.qos.logback:logback-classic:$LOGBACK_VERSION"
}

publishing {
publications {
mavenJava(MavenPublication) {
pom {
name = 'JPro Open Link'
description = 'A module that helps launching the default browser of the running platform.'
}
}
}
}
13 changes: 12 additions & 1 deletion internal/util/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,15 @@ dependencies {

testImplementation "org.assertj:assertj-core:$ASSERTJ_VERSION"
testRuntimeOnly "ch.qos.logback:logback-classic:$LOGBACK_VERSION"
}
}

publishing {
publications {
mavenJava(MavenPublication) {
pom {
name = 'JPro Utils'
description = 'A utility module offering essential tools for process management and platform-specific functionalities'
}
}
}
}
14 changes: 3 additions & 11 deletions jpro-auth/core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,10 @@ publishing {
publications {
mavenJava(MavenPublication) {
pom {
packaging = 'jar'
name = 'JPro Auth Core'
description = 'Core library for authenticating and authorizing users.'
url = 'https://www.jpro.one'

developers {
developer {
id = 'besidev'
name = 'Besmir Beqiri'
email = '[email protected]'
}
}
description = 'A module for adding advanced authentication and authorization to JPro/JavaFX ' +
'applications, supporting OAuth 2.0, OpenID Connect, integration with multiple identity ' +
'providers and asynchronous operations for enhanced performance.'
}
}
}
Expand Down
12 changes: 1 addition & 11 deletions jpro-auth/routing/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,8 @@ publishing {
publications {
mavenJava(MavenPublication) {
pom {
packaging = 'jar'
name = 'JPro Auth Routing'
description = 'A library that makes it easy to combine and use the auth and routing functionalities.'
url = 'https://www.jpro.one'

developers {
developer {
id = 'besidev'
name = 'Besmir Beqiri'
email = '[email protected]'
}
}
description = 'A module that makes it easy to combine and use the authentication and routing functionalities.'
}
}
}
Expand Down
12 changes: 1 addition & 11 deletions jpro-file/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,9 @@ publishing {
}

pom {
packaging = 'jar'
name = 'JPro File'
description = 'A library for handling file related operations in JavaFX applications ' +
description = 'A module for handling file related operations in JPro/JavaFX applications ' +
'running natively and via JPro server.'
url = 'https://www.jpro.one'

developers {
developer {
id = 'besidev'
name = 'Besmir Beqiri'
email = '[email protected]'
}
}
}
}
}
Expand Down
15 changes: 14 additions & 1 deletion jpro-html-scrollpane/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,17 @@ dependencies {
implementation "com.sandec.jpro:jpro-webapi:$JPRO_VERSION"
implementation "one.jpro:jmemorybuddy:$JMEMORYBUDDY_VERSION"
implementation "org.slf4j:slf4j-api:$SLF4J_API_VERSION"
}
}

publishing {
publications {
mavenJava(MavenPublication) {
pom {
name = 'JPro Auth Core'
description = 'A module for adding advanced authentication and authorization to JPro/JavaFX ' +
'applications, supporting OAuth 2.0, OpenID Connect, integration with multiple identity ' +
'providers and asynchronous operations for enhanced performance.'
}
}
}
}
13 changes: 12 additions & 1 deletion jpro-image-manager/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,15 @@ dependencies {
implementation "org.slf4j:slf4j-api:$SLF4J_API_VERSION"
implementation "com.sandec.jpro:jpro-webapi:$JPRO_VERSION"
implementation "org.json:json:$JSON_VERSION"
}
}

publishing {
publications {
mavenJava(MavenPublication) {
pom {
name = 'JPro Image Manager'
description = 'A utility module for JPro/JavaFX applications that simplifies image loading and caching.'
}
}
}
}
13 changes: 12 additions & 1 deletion jpro-mail/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,15 @@ javadoc {
author = true
// addStringOption('Xdoclint:none', '-quiet')
}
}
}

publishing {
publications {
mavenJava(MavenPublication) {
pom {
name = 'JPro Mail'
description = 'A module that provides platform-independent and protocol-independent API for sending emails.'
}
}
}
}
13 changes: 12 additions & 1 deletion jpro-mdfx/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,15 @@ javadoc {
author = true
// addStringOption('Xdoclint:none', '-quiet')
}
}
}

publishing {
publications {
mavenJava(MavenPublication) {
pom {
name = 'JPro Markdown'
description = 'A module that allows you to render Markdown formatted content in your JPro/JavaFX applications.'
}
}
}
}
13 changes: 1 addition & 12 deletions jpro-media/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -68,19 +68,8 @@ publishing {
}

pom {
packaging = 'jar'
name = 'JPro Media'
description = 'A library for playing audio and video files in JavaFX applications running natively ' +
'and via JPro server.'
url = 'https://www.jpro.one'

developers {
developer {
id = 'besidev'
name = 'Besmir Beqiri'
email = '[email protected]'
}
}
description = 'A module for playing audio and video files in JPro/JavaFX applications.'
}
}
}
Expand Down
16 changes: 16 additions & 0 deletions jpro-routing/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ configure([project(':jpro-routing:core')]) {
classifier 'documentation'
extension 'md'
}

pom {
name = 'JPro Routing Core'
description = 'A framework for building JPro/JavaFX applications, both desktop and web, with routing capabilities.'
}
}
}
}
Expand All @@ -68,6 +73,17 @@ configure([project(':jpro-routing:dev')]) {
implementation "one.jpro.platform.jpms:cssfx:$CSSFX_VERSION"
implementation "org.scenic-view:scenic-view:$SCENIC_VIEW_VERSION"
}

publishing {
publications {
mavenJava(MavenPublication) {
pom {
name = 'JPro Routing Dev'
description = 'A module that provides extra routing tools useful during development.'
}
}
}
}
}

configure([project(':jpro-routing:core-test')]) {
Expand Down
11 changes: 11 additions & 0 deletions jpro-routing/popup/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,15 @@ dependencies {
api "one.jpro:jmemorybuddy:$JMEMORYBUDDY_VERSION"
api "org.kordamp.ikonli:ikonli-javafx:$IKONLI_VERSION"
api "org.kordamp.ikonli:ikonli-evaicons-pack:$IKONLI_VERSION"
}

publishing {
publications {
mavenJava(MavenPublication) {
pom {
name = 'JPro Routing Popup'
description = 'A module that provides utility methods for managing popups in a JPro/JavaFX application.'
}
}
}
}
11 changes: 11 additions & 0 deletions jpro-scenegraph/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
publishing {
publications {
mavenJava(MavenPublication) {
pom {
name = 'JPro Scenegraph'
description = 'A module that serializes a scene graph to a string representation making it both ' +
'human and AI friendly.'
}
}
}
}
13 changes: 12 additions & 1 deletion jpro-session/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,15 @@ dependencies {
implementation "org.slf4j:slf4j-api:$SLF4J_API_VERSION"

testRuntimeOnly "ch.qos.logback:logback-classic:$LOGBACK_VERSION"
}
}

publishing {
publications {
mavenJava(MavenPublication) {
pom {
name = 'JPro Session'
description = 'A module that provides a simple implementation of a session manager for JavaFX/JPro applications.'
}
}
}
}
13 changes: 12 additions & 1 deletion jpro-sipjs/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,15 @@ dependencies {
implementation "com.sandec.jpro:jpro-webapi:$JPRO_VERSION"
api project(':jpro-webrtc') // mainly to avoid duplicated code
api "org.json:json:$JSON_VERSION"
}
}

publishing {
publications {
mavenJava(MavenPublication) {
pom {
name = 'JPro SipJS'
description = 'A module that takes care of SIP signaling for web applications running with JPro.'
}
}
}
}
Loading

0 comments on commit 9a078ba

Please sign in to comment.