Skip to content
This repository has been archived by the owner on Apr 24, 2020. It is now read-only.

Commit

Permalink
Revert to build with Gradle 3.5 as it give us compatibily 2.8-4.2 (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
ysb33r committed Sep 30, 2017
1 parent 45f79a0 commit e3bc051
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 16 deletions.
6 changes: 5 additions & 1 deletion gradle/integration-tests.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ sourceSets {
}

task integrationTest(type: Test, dependsOn: jar) {
testClassesDirs = sourceSets.integrationTest.output.classesDirs
if(GradleVersion.current() < GradleVersion.version('4.0')) {
testClassesDir = sourceSets.integrationTest.output.classesDir
} else {
testClassesDirs = sourceSets.integrationTest.output.classesDirs
}
classpath = sourceSets.integrationTest.runtimeClasspath
mustRunAfter test
}
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-3.5-bin.zip
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,9 @@ package org.ysb33r.gradle.ivypot.internal

import groovy.transform.CompileDynamic
import groovy.transform.CompileStatic
import groovy.transform.TypeChecked
import org.gradle.api.Action
import org.gradle.api.ActionConfiguration
import org.gradle.api.GradleException
import org.gradle.api.artifacts.ComponentMetadataSupplier
import org.gradle.api.artifacts.repositories.AuthenticationContainer
import org.gradle.api.artifacts.repositories.IvyArtifactRepository
import org.gradle.api.artifacts.repositories.IvyArtifactRepositoryMetaDataProvider
import org.gradle.api.artifacts.repositories.PasswordCredentials
import org.gradle.api.artifacts.repositories.RepositoryLayout
import org.ysb33r.gradle.ivypot.IvyXml

Expand Down Expand Up @@ -206,13 +200,13 @@ class IvyRepository implements IvyArtifactRepository, IvyXml, RepositoryTraits {
ret += '</url>'
}

void setMetadataSupplier(Class<? extends ComponentMetadataSupplier> aClass) {
throw new GradleException("Metadata is not implemented. If this is a requirement for your use case then register your interest at https://github.com/ysb33r/ivypot-gradle-plugin/issues/23")
}

void setMetadataSupplier(Class<? extends ComponentMetadataSupplier> aClass, Action<? super ActionConfiguration> action) {
throw new GradleException("Metadata is not implemented. If this is a requirement for your use case then register your interest at https://github.com/ysb33r/ivypot-gradle-plugin/issues/23")
}
// void setMetadataSupplier(Class<? extends ComponentMetadataSupplier> aClass) {
// throw new GradleException("Metadata is not implemented. If this is a requirement for your use case then register your interest at https://github.com/ysb33r/ivypot-gradle-plugin/issues/23")
// }
//
// void setMetadataSupplier(Class<? extends ComponentMetadataSupplier> aClass, Action<? super ActionConfiguration> action) {
// throw new GradleException("Metadata is not implemented. If this is a requirement for your use case then register your interest at https://github.com/ysb33r/ivypot-gradle-plugin/issues/23")
// }

@CompileDynamic
private void applyPatterns(final PatternBasedResolver patterns) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class MavenRepository implements MavenArtifactRepository, IvyXml, RepositoryTrai
*
* @param urls The URLs.
*/
@Override
// @Override
void setArtifactUrls(Set<URI> urls) {
artifactUrls.clear()
artifactUrls.addAll(urls)
Expand Down

0 comments on commit e3bc051

Please sign in to comment.