Skip to content

Commit

Permalink
add maven publish configuration for gradle plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ftomassetti committed Aug 11, 2023
1 parent 4c16316 commit 0227961
Showing 1 changed file with 66 additions and 0 deletions.
66 changes: 66 additions & 0 deletions lionweb-gen-gradle/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,70 @@ java {
registerFeature('cli') {
usingSourceSet(sourceSets.main)
}
}

publishing {

repositories {
maven {
def releaseRepo = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
def snapshotRepo = "https://oss.sonatype.org/content/repositories/snapshots/"
url = isReleaseVersion ? releaseRepo : snapshotRepo
credentials {
username = project.hasProperty('ossrhUsername') ? ossrhUsername : "Unknown user"
password = project.hasProperty('ossrhPassword') ? ossrhPassword : "Unknown password"
}
}
}

// publications {
// kolasu_lionweb(MavenPublication) {
// from components.java
// artifactId "kolasu-" + project.name
// artifact sourcesJar
// artifact javadocJar
// suppressPomMetadataWarningsFor('cliApiElements')
// suppressPomMetadataWarningsFor('cliRuntimeElements')
// pom {
// name = "kolasu-" + project.name
// description = "Gradle plugin for the integration of Kolasu with LIonWeb"
// version = project.version
// packaging = 'jar'
// url = 'https://github.com/Strumenta/kolasu'
//
// scm {
// connection = 'scm:git:https://github.com/Strumenta/kolasu.git'
// developerConnection = 'scm:git:[email protected]:Strumenta/kolasu.git'
// url = 'https://github.com/Strumenta/kolasu.git'
// }
//
// licenses {
// license {
// name = 'Apache Licenve V2.0'
// url = 'https://www.apache.org/licenses/LICENSE-2.0'
// distribution = 'repo'
// }
// }
//
// developers {
// developer {
// id = 'ftomassetti'
// name = 'Federico Tomassetti'
// email = '[email protected]'
// }
// developer {
// id = 'alessiostalla'
// name = 'Alessio Stalla'
// email = '[email protected]'
// }
// developer {
// id = 'lorenzoaddazi'
// name = 'Lorenzo Addazi'
// email = '[email protected]'
// }
// }
//
// }
// }
// }
}

0 comments on commit 0227961

Please sign in to comment.