Skip to content

Commit 1002b3c

Browse files
author
Baruch Sadogursky
committed
Merge pull request #45 from jbaruch/master
3.3 (debian) support added, build on Gradle 2.0
2 parents 1c53204 + b12473e commit 1002b3c

File tree

16 files changed

+75
-24
lines changed

16 files changed

+75
-24
lines changed

api/src/main/java/org/jfrog/artifactory/client/model/Repository.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,8 @@ public interface Repository {
2626
boolean isEnableGemsSupport();
2727

2828
boolean isEnableNpmSupport();
29+
30+
boolean isEnableDebianSupport();
31+
32+
boolean isDebianTrivialLayout();
2933
}

api/src/main/java/org/jfrog/artifactory/client/model/builder/RepositoryBuilder.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
*/
99
public interface RepositoryBuilder<B extends RepositoryBuilder, R extends Repository> {
1010

11+
B enableDebianSupport(boolean enableDebianSupport);
12+
1113
B description(String description);
1214

1315
B excludesPattern(String excludesPattern);
@@ -25,4 +27,6 @@ public interface RepositoryBuilder<B extends RepositoryBuilder, R extends Reposi
2527
B enableNuGetSupport(boolean enableNuGetSupport);
2628

2729
B enableGemsSupport(boolean enableGemsSupport);
30+
31+
B debianTrivialLayout(boolean debianTrivialLayout);
2832
}

build.gradle

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ buildscript {
55
jcenter()
66
}
77
dependencies {
8-
classpath(group: 'org.jfrog.buildinfo', name: 'build-info-extractor-gradle', version: '2.2.2')
9-
classpath(group: 'eu.appsatori', name: 'gradle-fatjar-plugin', version: '0.2-rc1')
8+
classpath(group: 'org.jfrog.buildinfo', name: 'build-info-extractor-gradle', version: '3.0.1')
9+
classpath(group: 'eu.appsatori', name: 'gradle-fatjar-plugin', version: '0.3')
1010
}
1111
}
1212

1313
allprojects {
1414

1515
apply plugin: 'maven-publish'
16-
apply plugin: 'artifactory-publish'
16+
apply plugin: 'com.jfrog.artifactory'
1717

1818
group = 'org.jfrog.artifactory.client'
1919
version = currentVersion
@@ -67,7 +67,7 @@ subprojects {
6767

6868
task javadocJar(type: Jar, dependsOn: javadoc) {
6969
classifier = 'javadoc'
70-
from javadoc.destinationDir
70+
from destinationDir
7171
}
7272

7373
// add javadoc/source jar tasks as artifacts
@@ -130,5 +130,6 @@ subprojects {
130130
}
131131

132132
task wrapper(type: Wrapper) {
133-
gradleVersion = '1.10'
133+
gradleVersion = '2.0'
134+
distributionUrl = 'https://services.gradle.org/distributions-snapshots/gradle-2.0-all.zip'
134135
}

gradle/wrapper/gradle-wrapper.jar

834 Bytes
Binary file not shown.
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
#Tue Jan 14 17:33:08 IST 2014
1+
#Sun Aug 10 16:38:57 IDT 2014
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
#distributionUrl=https\://services.gradle.org/distributions/gradle-2.0-rc-1-all.zip
7-
distributionUrl=https\://services.gradle.org/distributions/gradle-1.12-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-2.0-all.zip

ning-services/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apply plugin: 'groovy'
2-
apply plugin: 'fatjar'
2+
apply plugin: 'eu.appsatori.fatjar'
33

44
dependencies {
55
compile project(':artifactory-java-client-services')

services/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apply plugin: 'groovy'
2-
apply plugin: 'fatjar'
2+
apply plugin: 'eu.appsatori.fatjar'
33

44
dependencies {
55
compile project(':artifactory-java-client-api')

services/src/main/groovy/org/jfrog/artifactory/client/model/builder/impl/LocalRepositoryBuilderImpl.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class LocalRepositoryBuilderImpl extends NonVirtualRepositoryBuilderBase<LocalRe
4141
}
4242

4343
LocalRepository build() {
44-
return new LocalRepositoryImpl(description, excludesPattern, includesPattern, key, notes, blackedOut, handleReleases, handleSnapshots, maxUniqueSnapshots, propertySets, snapshotVersionBehavior, suppressPomConsistencyChecks, checksumPolicyType, repoLayoutRef, enableNuGetSupport, archiveBrowsingEnabled, calculateYumMetadata, yumRootDepth, enableGemsSupport, enableNpmSupport)
44+
return new LocalRepositoryImpl(description, excludesPattern, includesPattern, key, notes, blackedOut, handleReleases, handleSnapshots, maxUniqueSnapshots, propertySets, snapshotVersionBehavior, suppressPomConsistencyChecks, checksumPolicyType, repoLayoutRef, enableNuGetSupport, archiveBrowsingEnabled, calculateYumMetadata, yumRootDepth, enableGemsSupport, enableNpmSupport, enableDebianSupport, debianTrivialLayout)
4545
}
4646

4747
}

services/src/main/groovy/org/jfrog/artifactory/client/model/builder/impl/RemoteRepositoryBuilderImpl.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,6 @@ class RemoteRepositoryBuilderImpl extends NonVirtualRepositoryBuilderBase<Remote
166166
snapshotVersionBehavior, suppressPomConsistencyChecks, failedRetrievalCachePeriodSecs, fetchJarsEagerly, fetchSourcesEagerly, hardFail, localAddress, missedRetrievalCachePeriodSecs,
167167
offline, password, proxy, remoteRepoChecksumPolicyType, retrievalCachePeriodSecs, shareConfiguration, socketTimeoutMillis, storeArtifactsLocally, synchronizeProperties,
168168
unusedArtifactsCleanupEnabled, unusedArtifactsCleanupPeriodHours, url, username, repoLayoutRef, enableNuGetSupport, assumedOfflinePeriodSecs, archiveBrowsingEnabled,
169-
listRemoteFolderItems, rejectInvalidJars, p2Support, enableGemsSupport, enableNpmSupport)
169+
listRemoteFolderItems, rejectInvalidJars, p2Support, enableGemsSupport, enableNpmSupport, enableDebianSupport, debianTrivialLayout)
170170
}
171171
}

services/src/main/groovy/org/jfrog/artifactory/client/model/builder/impl/RepositoryBuilderBase.groovy

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ abstract class RepositoryBuilderBase<B extends RepositoryBuilder, R extends Repo
1818
protected boolean enableNuGetSupport = false
1919
protected boolean enableGemsSupport = false
2020
protected boolean enableNpmSupport = false
21+
protected boolean enableDebianSupport = false
22+
protected boolean debianTrivialLayout = false
2123

2224
@Override
2325
B description(String description) {
@@ -66,4 +68,16 @@ abstract class RepositoryBuilderBase<B extends RepositoryBuilder, R extends Repo
6668
this.enableGemsSupport = enableGemsSupport
6769
this as B
6870
}
71+
72+
@Override
73+
B enableDebianSupport(boolean enableDebianSupport) {
74+
this.enableDebianSupport = enableDebianSupport
75+
this as B
76+
}
77+
78+
@Override
79+
B debianTrivialLayout(boolean debianTrivialLayout) {
80+
this.debianTrivialLayout = debianTrivialLayout
81+
this as B
82+
}
6983
}

0 commit comments

Comments
 (0)