|
@@ -4,6 +4,7 @@ plugins {
|
|
|
id 'java-gradle-plugin'
|
|
|
id 'maven-publish'
|
|
|
alias(libs.plugins.jetbrains.kotlin.jvm)
|
|
|
+ id 'com.jfrog.artifactory' version '5+'
|
|
|
}
|
|
|
|
|
|
java {
|
|
@@ -34,14 +35,30 @@ dependencies {
|
|
|
}
|
|
|
|
|
|
publishing {
|
|
|
- repositories {
|
|
|
- maven {
|
|
|
- url = uri("${project.buildDir}/repo") // Local Maven repository
|
|
|
- }
|
|
|
- }
|
|
|
+// repositories {
|
|
|
+// maven {
|
|
|
+// url = uri("${project.buildDir}/repo") // Local Maven repository
|
|
|
+// }
|
|
|
+// }
|
|
|
publications {
|
|
|
mavenJava(MavenPublication) {
|
|
|
from components.java
|
|
|
}
|
|
|
}
|
|
|
+}
|
|
|
+
|
|
|
+artifactory {
|
|
|
+ contextUrl = 'http://192.168.1.38:8082/artifactory'
|
|
|
+ publish {
|
|
|
+ repository {
|
|
|
+ repoKey = 'ob-in-plugin'
|
|
|
+ username = "development"
|
|
|
+ password = "AP6wH1jwMWCRwDBftXh4cLmtYq7"
|
|
|
+ }
|
|
|
+ defaults {
|
|
|
+ publications(publishing.publications.names.toArray())
|
|
|
+ publishArtifacts = true
|
|
|
+ publishPom = true
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|