86 lines
2.0 KiB
Groovy
86 lines
2.0 KiB
Groovy
plugins {
|
|
id("java")
|
|
id("maven-publish")
|
|
id("signing")
|
|
}
|
|
|
|
group = "com.krrishg"
|
|
version = "1.1.1"
|
|
archivesBaseName = "kimage"
|
|
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'commons-io:commons-io:2.17.0'
|
|
}
|
|
|
|
java {
|
|
withJavadocJar()
|
|
withSourcesJar()
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
|
|
mavenJava(MavenPublication) {
|
|
|
|
groupId = 'com.krrishg'
|
|
artifactId = 'kimage'
|
|
version = '1.1.1'
|
|
from components.java
|
|
|
|
pom {
|
|
name = 'kimage'
|
|
description = 'Image processing tools in java'
|
|
url = 'http://gitlab.com/krrishg/kimage'
|
|
inceptionYear = '2023'
|
|
|
|
licenses {
|
|
license {
|
|
name = 'The GNU General Public License, Version 3.0'
|
|
url = 'https://www.gnu.org/licenses/gpl-3.0.en.html'
|
|
}
|
|
}
|
|
developers {
|
|
developer {
|
|
id = 'krrishg'
|
|
name = 'Krrish Ghimire'
|
|
email = 'krrishg@protonmail.com'
|
|
}
|
|
}
|
|
scm {
|
|
connection = 'scm:git:git:gitlab.com/krrishg/kimage.git'
|
|
developerConnection = 'scm:git:ssh://gitlab.com/krrishg/kimage.git'
|
|
url = 'https://gitlab.com/krrishg/kimage'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
repositories {
|
|
maven {
|
|
name = "OSSRH"
|
|
url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
|
|
credentials {
|
|
username = project.properties["username"]
|
|
password = project.properties["password"]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
signing {
|
|
sign publishing.publications.mavenJava
|
|
}
|
|
|
|
|
|
javadoc {
|
|
if (JavaVersion.current().isJava9Compatible()) {
|
|
options.addBooleanOption('html5', true)
|
|
}
|
|
}
|