Skip to content

Commit

Permalink
Fix Gradle config for Eclipse IDE (#2961)
Browse files Browse the repository at this point in the history
* Fix Gradle config for Eclipse IDE
* Apply eclipse plugin
  • Loading branch information
chanseokoh authored Jan 5, 2021
1 parent ad96231 commit 7517170
Show file tree
Hide file tree
Showing 10 changed files with 41 additions and 0 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ subprojects {

configurations {
integrationTestImplementation.extendsFrom testImplementation
integrationTestImplementation.setCanBeResolved(true)
integrationTestRuntime.extendsFrom testRuntime
}

Expand Down
4 changes: 4 additions & 0 deletions jib-build-plan/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,7 @@ release {
}
}
/* RELEASE */

/* ECLIPSE */
eclipse.classpath.plusConfigurations += [configurations.integrationTestImplementation]
/* ECLIPSE */
11 changes: 11 additions & 0 deletions jib-cli/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,14 @@ release {
requireBranch = /^cli-release-v\d+.*$/ //regex
}
}

/* ECLIPSE */
eclipse.classpath.plusConfigurations += [configurations.integrationTestImplementation]
eclipse.classpath.file.whenMerged {
entries.each {
if (it.path == 'src/integration-test/resources') {
it.excludes += 'jarTest/'
}
}
}
/* ECLIPSE */
4 changes: 4 additions & 0 deletions jib-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,7 @@ release {
}
}
/* RELEASE */

/* ECLIPSE */
eclipse.classpath.plusConfigurations += [configurations.integrationTestImplementation]
/* ECLIPSE */
5 changes: 5 additions & 0 deletions jib-gradle-plugin-extension-api/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'net.researchgate.release'
id 'maven-publish'
id 'eclipse'
}

dependencies {
Expand Down Expand Up @@ -47,3 +48,7 @@ release {
}
}
/* RELEASE */

/* ECLIPSE */
eclipse.classpath.plusConfigurations += [configurations.integrationTestImplementation]
/* ECLIPSE */
1 change: 1 addition & 0 deletions jib-gradle-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ tasks.publishPlugins.dependsOn integrationTest
/* RELEASE */

/* ECLIPSE */
eclipse.classpath.plusConfigurations += [configurations.integrationTestImplementation]
eclipse.classpath.file.whenMerged {
entries.each {
if (it.path == 'src/test/resources' || it.path == 'src/integration-test/resources') {
Expand Down
5 changes: 5 additions & 0 deletions jib-maven-plugin-extension-api/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'net.researchgate.release'
id 'maven-publish'
id 'eclipse'
}

dependencies {
Expand Down Expand Up @@ -47,3 +48,7 @@ release {
}
}
/* RELEASE */

/* ECLIPSE */
eclipse.classpath.plusConfigurations += [configurations.integrationTestImplementation]
/* ECLIPSE */
1 change: 1 addition & 0 deletions jib-maven-plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ release {
/* RELEASE */

/* ECLIPSE */
eclipse.classpath.plusConfigurations += [configurations.integrationTestImplementation]
eclipse.classpath.file.whenMerged {
entries.each {
if (it.path == 'src/test/resources') {
Expand Down
4 changes: 4 additions & 0 deletions jib-plugins-common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,7 @@ dependencies {
}

sourceSets.test.resources.srcDirs project(':jib-core').sourceSets.test.resources

/* ECLIPSE */
eclipse.classpath.plusConfigurations += [configurations.integrationTestImplementation]
/* ECLIPSE */
5 changes: 5 additions & 0 deletions jib-plugins-extension-common/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'net.researchgate.release'
id 'maven-publish'
id 'eclipse'
}

jar {
Expand Down Expand Up @@ -41,3 +42,7 @@ release {
}
}
/* RELEASE */

/* ECLIPSE */
eclipse.classpath.plusConfigurations += [configurations.integrationTestImplementation]
/* ECLIPSE */

0 comments on commit 7517170

Please sign in to comment.