-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI - Prefer repo from settings over project (#90)
- Loading branch information
Showing
8 changed files
with
66 additions
and
52 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
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
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
33 changes: 16 additions & 17 deletions
33
src/functionalTest/resources/gradle-example-ci-server-archives/build.gradle
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,32 +1,31 @@ | ||
def javaProjects() { | ||
subprojects.findAll { new File(it.projectDir, 'src').directory } | ||
subprojects.findAll { new File(it.projectDir, 'src').directory } | ||
} | ||
|
||
allprojects { | ||
group = 'org.jfrog.test.gradle.publish' | ||
version = currentVersion | ||
status = 'Integration' | ||
repositories { | ||
maven { | ||
url "${System.env.BITESTS_PLATFORM_URL}/artifactory/${System.env.BITESTS_ARTIFACTORY_VIRTUAL_REPO}" | ||
credentials { | ||
username "${System.env.BITESTS_PLATFORM_USERNAME}" | ||
password "${System.env.BITESTS_PLATFORM_ADMIN_TOKEN}" | ||
} | ||
group = 'org.jfrog.test.gradle.publish' | ||
version = currentVersion | ||
status = 'Integration' | ||
repositories { | ||
maven { | ||
url "should-override-me" | ||
credentials { | ||
username "should-override-me" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
artifactoryPublish.skip = true | ||
|
||
project('services') { | ||
artifactoryPublish.skip = true | ||
artifactoryPublish.skip = true | ||
} | ||
|
||
configure(javaProjects()) { | ||
apply plugin: 'java' | ||
apply plugin: 'java' | ||
|
||
dependencies { | ||
testImplementation 'junit:junit:4.7' | ||
} | ||
dependencies { | ||
testImplementation 'junit:junit:4.7' | ||
} | ||
} |
57 changes: 28 additions & 29 deletions
57
src/functionalTest/resources/gradle-example-ci-server/build.gradle
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,46 +1,45 @@ | ||
def javaProjects() { | ||
subprojects.findAll { new File(it.projectDir, 'src').directory } | ||
subprojects.findAll { new File(it.projectDir, 'src').directory } | ||
} | ||
|
||
allprojects { | ||
group = 'org.jfrog.test.gradle.publish' | ||
version = currentVersion | ||
status = 'Integration' | ||
repositories { | ||
maven { | ||
url "${System.env.BITESTS_PLATFORM_URL}/artifactory/${System.env.BITESTS_ARTIFACTORY_VIRTUAL_REPO}" | ||
credentials { | ||
username "${System.env.BITESTS_PLATFORM_USERNAME}" | ||
password "${System.env.BITESTS_PLATFORM_ADMIN_TOKEN}" | ||
} | ||
group = 'org.jfrog.test.gradle.publish' | ||
version = currentVersion | ||
status = 'Integration' | ||
repositories { | ||
maven { | ||
url "should-override-me" | ||
credentials { | ||
password "should-override-me" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
artifactoryPublish.skip = true | ||
|
||
project('services') { | ||
artifactoryPublish.skip = true | ||
artifactoryPublish.skip = true | ||
} | ||
|
||
configure(javaProjects()) { | ||
apply plugin: 'java' | ||
apply plugin: 'maven-publish' | ||
apply plugin: 'ivy-publish' | ||
apply plugin: 'java' | ||
apply plugin: 'maven-publish' | ||
apply plugin: 'ivy-publish' | ||
|
||
dependencies { | ||
testImplementation 'junit:junit:4.7' | ||
} | ||
dependencies { | ||
testImplementation 'junit:junit:4.7' | ||
} | ||
|
||
publishing { | ||
publications { | ||
mavenJava(MavenPublication) { | ||
from components.java | ||
artifact(file("$rootDir/gradle.properties")) | ||
} | ||
customIvyPublication(IvyPublication) { | ||
from components.java | ||
} | ||
publishing { | ||
publications { | ||
mavenJava(MavenPublication) { | ||
from components.java | ||
artifact(file("$rootDir/gradle.properties")) | ||
} | ||
customIvyPublication(IvyPublication) { | ||
from components.java | ||
} | ||
} | ||
} | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
src/functionalTest/resources/settings/build-info-tests-gradle-remote-google.json
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,6 @@ | ||
{ | ||
"packageType": "gradle", | ||
"repoLayoutRef": "maven-2-default", | ||
"url": "https://maven.google.com", | ||
"rclass": "remote" | ||
} |
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
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