maven publish
This commit is contained in:
6
.gitignore
vendored
6
.gitignore
vendored
@@ -1,3 +1,7 @@
|
||||
.env
|
||||
.idea
|
||||
gradle/
|
||||
|
||||
.gradle
|
||||
build/
|
||||
!gradle/wrapper/gradle-wrapper.jar
|
||||
@@ -41,4 +45,4 @@ bin/
|
||||
### Mac OS ###
|
||||
.DS_Store
|
||||
|
||||
kls_database.db
|
||||
kls_database.db
|
||||
|
@@ -2,6 +2,7 @@ plugins {
|
||||
kotlin("jvm") version "1.9.21"
|
||||
application
|
||||
`maven-publish`
|
||||
id("co.uzzu.dotenv.gradle") version "4.0.0"
|
||||
}
|
||||
|
||||
group = "me.alex_s168"
|
||||
@@ -30,6 +31,17 @@ application {
|
||||
}
|
||||
|
||||
publishing {
|
||||
repositories {
|
||||
maven {
|
||||
url = uri("http://198.7.115.119:8080/libs")
|
||||
isAllowInsecureProtocol = true
|
||||
credentials {
|
||||
username = env.USER.orNull()
|
||||
password = env.PASS.orNull()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
publications {
|
||||
create<MavenPublication>("maven") {
|
||||
groupId = group.toString()
|
||||
@@ -39,4 +51,4 @@ publishing {
|
||||
from(components["kotlin"])
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user