opentcs/gradle/publishing-java.gradle
CaiXiang aa56926258
Some checks failed
Gradle Build / build (push) Has been cancelled
Initial commit
2024-11-30 18:36:13 +08:00

50 lines
1.2 KiB
Groovy

// 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"
}
}
}
}
}