This commit is contained in:
49
gradle/publishing-java.gradle
Normal file
49
gradle/publishing-java.gradle
Normal file
@@ -0,0 +1,49 @@
|
||||
// SPDX-FileCopyrightText: The openTCS Authors
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
apply from: "${rootDir}/gradle/signing.gradle"
|
||||
|
||||
// Enable javadoc and sources JARs to be created.
|
||||
java {
|
||||
withJavadocJar()
|
||||
withSourcesJar()
|
||||
}
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
create(project.name + '_mavenJava', MavenPublication) {
|
||||
from(components.java)
|
||||
|
||||
pom {
|
||||
// Override artifactId since project.name is used by default and is mixed-case.
|
||||
artifactId = project.name.toLowerCase()
|
||||
|
||||
name = project.name
|
||||
description = project.name
|
||||
url = "https://www.opentcs.org/"
|
||||
|
||||
licenses {
|
||||
license {
|
||||
name = "MIT License"
|
||||
url = "https://opensource.org/license/mit"
|
||||
}
|
||||
}
|
||||
|
||||
developers {
|
||||
developer {
|
||||
name = "The openTCS Authors"
|
||||
email = "info@opentcs.org"
|
||||
organization = "The open Transportation Control System"
|
||||
organizationUrl = "https://www.opentcs.org/"
|
||||
}
|
||||
}
|
||||
|
||||
scm {
|
||||
connection = "scm:git:git://github.com/opentcs/opentcs.git"
|
||||
developerConnection = "scm:git:ssh://github.com:opentcs/opentcs.git"
|
||||
url = "https://github.com/opentcs/opentcs"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user