This repository has been archived by the owner on Feb 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Catalin Buleandra
committed
Mar 1, 2015
1 parent
df7b739
commit cc76e6e
Showing
9 changed files
with
86 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 21 additions & 4 deletions
25
src/main/groovy/com/ofg/uptodate/finder/FinderConfiguration.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,28 @@ | ||
package com.ofg.uptodate.finder | ||
|
||
import com.ofg.uptodate.UptodatePluginExtension | ||
import groovy.transform.PackageScope | ||
|
||
@PackageScope | ||
class FinderConfiguration { | ||
|
||
boolean ignore | ||
HttpConnectionSettings httpConnectionSettings | ||
List<String> excludedVersionPatterns | ||
final boolean ignore | ||
final HttpConnectionSettings httpConnectionSettings | ||
final List<String> excludedVersionPatterns | ||
|
||
FinderConfiguration(RepositorySettings repositorySettings, | ||
UptodatePluginExtension uptodatePluginExtension) { | ||
|
||
ignore = repositorySettings.ignoreRepo | ||
httpConnectionSettings = new HttpConnectionSettings( | ||
url: repositorySettings.repoUrl, | ||
proxySettings: new ProxySettings( | ||
hostname: uptodatePluginExtension.proxyHostname, | ||
port: uptodatePluginExtension.proxyPort, | ||
scheme: uptodatePluginExtension.proxyScheme | ||
), | ||
poolSize: uptodatePluginExtension.simultaneousHttpConnections, | ||
timeout: uptodatePluginExtension.connectionTimeout | ||
) | ||
excludedVersionPatterns = uptodatePluginExtension.excludedVersionPatterns | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
src/main/groovy/com/ofg/uptodate/finder/HttpConnectionSettings.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
src/main/groovy/com/ofg/uptodate/finder/JCenterNewVersionFinderFactory.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.ofg.uptodate.finder | ||
|
||
import com.ofg.uptodate.LoggerProxy | ||
import com.ofg.uptodate.UptodatePluginExtension | ||
import groovy.transform.PackageScope | ||
|
||
@PackageScope | ||
class JCenterNewVersionFinderFactory implements NewVersionFinderFactory { | ||
|
||
final LoggerProxy loggerProxy | ||
|
||
JCenterNewVersionFinderFactory(LoggerProxy loggerProxy) { | ||
this.loggerProxy = loggerProxy | ||
} | ||
|
||
@Override | ||
NewVersionFinder build(UptodatePluginExtension uptodatePluginExtension) { | ||
return new NewVersionFinder(loggerProxy, new JCenterRepositorySettingsProvider(), new JCenterLatestDependenciesProvider(loggerProxy), uptodatePluginExtension); | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
src/main/groovy/com/ofg/uptodate/finder/MavenNewVersionFinderFactory.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.ofg.uptodate.finder | ||
|
||
import com.ofg.uptodate.LoggerProxy | ||
import com.ofg.uptodate.UptodatePluginExtension | ||
import groovy.transform.PackageScope | ||
|
||
@PackageScope | ||
class MavenNewVersionFinderFactory implements NewVersionFinderFactory { | ||
|
||
final LoggerProxy loggerProxy | ||
|
||
MavenNewVersionFinderFactory(LoggerProxy loggerProxy) { | ||
this.loggerProxy = loggerProxy | ||
} | ||
|
||
@Override | ||
NewVersionFinder build(UptodatePluginExtension uptodatePluginExtension) { | ||
return new NewVersionFinder(loggerProxy, new MavenRepositorySettingsProvider(), new MavenLatestDependenciesProvider(loggerProxy), uptodatePluginExtension) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
src/main/groovy/com/ofg/uptodate/finder/NewVersionFinderFactory.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.ofg.uptodate.finder | ||
|
||
import com.ofg.uptodate.UptodatePluginExtension | ||
|
||
interface NewVersionFinderFactory { | ||
|
||
NewVersionFinder build(UptodatePluginExtension uptodatePluginExtension) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
src/main/groovy/com/ofg/uptodate/finder/RepositorySettings.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters