@@ -12,6 +12,9 @@ plugins {
1212repositories {
1313 mavenLocal()
1414 mavenCentral()
15+ maven {
16+ url ' https://plugins.gradle.org/m2/'
17+ }
1518}
1619
1720gradlePlugin {
@@ -47,7 +50,7 @@ dependencies {
4750 implementation ' commons-io:commons-io:2.6'
4851 implementation ' org.apache.commons:commons-collections4:4.1'
4952 implementation ' org.apache.velocity:velocity-engine-core:2.0'
50- implementation ' io.github.fvarrui:gradle- launch4j:2.4.7 '
53+ implementation ' edu.sc.seis.launch4j: launch4j:2.5.0 '
5154 implementation ' com.netflix.nebula:gradle-ospackage-plugin:8.4.1'
5255 implementation ' net.jsign:jsign-core:3.1'
5356
@@ -108,6 +111,7 @@ task generatePluginDescriptor(type: JavaExec, dependsOn: compileJava) {
108111 ' --batch-mode' ,
109112 ' --file' , " ${ buildDir} /pom.xml" ,
110113 ' org.apache.maven.plugins:maven-plugin-plugin:3.6.0:descriptor' ,
114+ // '-Dmaven.repo.remote=https://plugins.gradle.org/m2/',
111115 ' -Dproject.build.sourceEncoding=' + compileJava. options. encoding
112116 ]
113117
@@ -116,6 +120,12 @@ task generatePluginDescriptor(type: JavaExec, dependsOn: compileJava) {
116120 .mavenInstaller
117121 .pom
118122 .withXml {
123+ asNode(). appendNode(' repositories' ). appendNode(' repository' )
124+ .with {
125+ appendNode(' id' , ' gradle' )
126+ appendNode(' name' , ' Gradle Plugin Portal' )
127+ appendNode(' url' , ' https://plugins.gradle.org/m2/' )
128+ }
119129 asNode(). appendNode(' build' )
120130 .with {
121131 appendNode(' directory' , directory)
0 commit comments