|
1 | | -import groovy.lang.GroovyObject |
2 | 1 | import org.jetbrains.kotlin.gradle.tasks.KotlinCompile |
3 | | -import org.jfrog.gradle.plugin.artifactory.dsl.PublisherConfig |
4 | 2 |
|
5 | 3 | buildscript { |
6 | 4 | repositories { |
7 | 5 | mavenLocal() |
8 | 6 | mavenCentral() |
9 | | - jcenter() |
10 | | - maven { url = uri("https://binrepo.target.com/artifactory/TargetOSS") } |
11 | 7 | maven { url = uri("https://plugins.gradle.org/m2/") } |
12 | 8 | } |
13 | 9 | dependencies { |
@@ -39,18 +35,7 @@ java.sourceCompatibility = JavaVersion.VERSION_11 |
39 | 35 |
|
40 | 36 | repositories { |
41 | 37 | mavenLocal() |
42 | | - maven { |
43 | | - url = uri("https://binrepo.target.com/artifactory/TargetOSS") |
44 | | - metadataSources { |
45 | | - artifact() |
46 | | - } |
47 | | - } |
48 | | - maven { setUrl("https://binrepo.target.com/artifactory/maven-central") } |
49 | | - maven { setUrl("https://binrepo.target.com/artifactory/platform") } |
50 | | - maven { setUrl("https://binrepo.target.com/artifactory/jcenter") } |
51 | | - maven { setUrl("https://binrepo.target.com/artifactory/gradle") } |
52 | | - maven { setUrl("https://binrepo.target.com/artifactory/libs-release") } |
53 | | - maven { setUrl("https://binrepo.target.com/artifactory/esv-deploy") } |
| 38 | + mavenCentral() |
54 | 39 | } |
55 | 40 |
|
56 | 41 | dependencies { |
@@ -96,26 +81,6 @@ publishing { |
96 | 81 | } |
97 | 82 | } |
98 | 83 |
|
99 | | -artifactory { |
100 | | - setContextUrl("https://binrepo.target.com/artifactory") |
101 | | - |
102 | | - publish(delegateClosureOf<PublisherConfig> { |
103 | | - repository(delegateClosureOf<GroovyObject> { |
104 | | - val targetRepoKey = "TargetOSS" |
105 | | - val username = project.findProperty("artifactoryPublishRepositoryUsername") ?: "" |
106 | | - val password = project.findProperty("artifactoryPublishRepositoryPassword") ?: "" |
107 | | - setProperty("repoKey", targetRepoKey) |
108 | | - setProperty("username", username) |
109 | | - setProperty("password", password) |
110 | | - setProperty("maven", true) |
111 | | - }) |
112 | | - defaults(delegateClosureOf<GroovyObject> { |
113 | | - invokeMethod("publications", "mavenJava") |
114 | | - }) |
115 | | - }) |
116 | | - |
117 | | -} |
118 | | - |
119 | 84 | jacoco { |
120 | 85 | toolVersion = "0.8.7" |
121 | 86 | } |
|
0 commit comments