Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make it work with a regular Ivy resolver by hard coding the SF mirror

No need to use a hard coded resolver when hard coding the SourceForge
mirror instead. This must be fixed later, though.

Fixes GH-9
  • Loading branch information...
commit e7b0c85203f367ea7c5831349e6fa6d4087f6aca 1 parent 904b127
Stig Kleppe-Jørgensen authored
View
8 src/main/groovy/net/nisgits/gradle/executablejar/ExecutableJarPlugin.groovy
@@ -19,7 +19,6 @@ import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.artifacts.ResolvableDependencies
import org.gradle.api.internal.artifacts.publish.ArchivePublishArtifact
-import org.gradle.api.internal.artifacts.repositories.CommonsHttpClientResolver
import org.gradle.api.plugins.BasePlugin
import org.gradle.api.plugins.JavaPlugin
@@ -63,9 +62,10 @@ public class ExecutableJarPlugin implements Plugin<Project> {
if (project.repositories.findByName('SourceForge') == null) {
project.logger.info("Setting up SourceForge as a repository to download the default One-JAR library")
- project.repositories.add(new CommonsHttpClientResolver(null, null)) {
- name = 'SourceForge'
- addArtifactPattern 'https://sourceforge.net/projects/[organization]/files/[organization]/[organization]-[revision]/[module]-[revision].[ext]/download'
+ project.repositories {
+ ivy {
+ artifactPattern 'http://superb-dca2.dl.sourceforge.net/project/[organization]/[organization]/[organization]-[revision]/[module]-[revision].[ext]'
+ }
}
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.