publish to central
This commit is contained in:
+3
-1
@@ -39,4 +39,6 @@ bin/
|
|||||||
.vscode/
|
.vscode/
|
||||||
|
|
||||||
### Mac OS ###
|
### Mac OS ###
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
/.idea/
|
||||||
|
/gradle.properties
|
||||||
|
|||||||
+72
-1
@@ -1,14 +1,85 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id("java")
|
id("java")
|
||||||
|
id("maven-publish")
|
||||||
|
id("signing")
|
||||||
}
|
}
|
||||||
|
|
||||||
group = "com.krrishg"
|
group = "com.krrishg"
|
||||||
version = "1.0-SNAPSHOT"
|
version = "1.0.0"
|
||||||
|
archivesBaseName = "kimage"
|
||||||
|
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'commons-io:commons-io:2.8.0'
|
implementation 'commons-io:commons-io:2.8.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
java {
|
||||||
|
withJavadocJar()
|
||||||
|
withSourcesJar()
|
||||||
|
}
|
||||||
|
|
||||||
|
publishing {
|
||||||
|
publications {
|
||||||
|
|
||||||
|
mavenJava(MavenPublication) {
|
||||||
|
|
||||||
|
groupId = 'com.krrishg'
|
||||||
|
artifactId = 'kimage'
|
||||||
|
version = '1.0.0'
|
||||||
|
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)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user