mirror of
https://github.com/InsanusMokrassar/CaptchaPlaguBotPlugin.git
synced 2024-12-29 03:57:21 +00:00
add publication scripts
This commit is contained in:
parent
5c3128e58a
commit
c170085a58
@ -14,6 +14,8 @@ plugins {
|
||||
id "org.jetbrains.kotlin.plugin.serialization" version "$kotlin_version"
|
||||
}
|
||||
|
||||
apply from: "./publish.gradle"
|
||||
|
||||
project.group = "$project_group"
|
||||
project.version = "$project_version"
|
||||
|
||||
|
1
maven publish.kpsb
Normal file
1
maven publish.kpsb
Normal file
@ -0,0 +1 @@
|
||||
{"licenses":[],"mavenConfig":{"name":"${project.name}","description":"${project.name}","url":"https://github.com/InsanusMokrassar/CaptchaPlaguBotPlugin","vcsUrl":"https://github.com/InsanusMokrassar/CaptchaPlaguBotPlugin.git","developers":[]},"type":"JVM"}
|
44
publish.gradle
Normal file
44
publish.gradle
Normal file
@ -0,0 +1,44 @@
|
||||
apply plugin: 'maven-publish'
|
||||
|
||||
|
||||
task javadocJar(type: Jar) {
|
||||
from javadoc
|
||||
classifier = 'javadoc'
|
||||
}
|
||||
task sourcesJar(type: Jar) {
|
||||
from sourceSets.main.allSource
|
||||
classifier = 'sources'
|
||||
}
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
maven(MavenPublication) {
|
||||
from components.java
|
||||
|
||||
artifact javadocJar
|
||||
artifact sourcesJar
|
||||
|
||||
pom {
|
||||
resolveStrategy = Closure.DELEGATE_FIRST
|
||||
|
||||
description = "${project.name}"
|
||||
name = "${project.name}"
|
||||
url = "https://github.com/InsanusMokrassar/CaptchaPlaguBotPlugin"
|
||||
|
||||
scm {
|
||||
developerConnection = "scm:git:[fetch=]https://github.com/InsanusMokrassar/CaptchaPlaguBotPlugin.git[push=]https://github.com/InsanusMokrassar/CaptchaPlaguBotPlugin.git"
|
||||
url = "https://github.com/InsanusMokrassar/CaptchaPlaguBotPlugin.git"
|
||||
}
|
||||
|
||||
developers {
|
||||
|
||||
}
|
||||
|
||||
licenses {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user