Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix libs:ssl-config project setup #39074

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions libs/ssl-config/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,23 @@ dependencies {
testCompile "org.hamcrest:hamcrest-all:${versions.hamcrest}"
}

if (isEclipse) {
// in eclipse the project is under a fake root, we need to change around the source sets
sourceSets {
if (project.path == ":libs:ssl-config") {
main.java.srcDirs = ['java']
main.resources.srcDirs = ['resources']
} else {
test.java.srcDirs = ['java']
test.resources.srcDirs = ['resources']
}
}
}

forbiddenApisMain {
replaceSignatureFiles 'jdk-signatures'
}

forbiddenPatterns {
exclude '**/*.key'
exclude '**/*.pem'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// this is just shell gradle file for eclipse to have separate projects for geo src and tests
// this is just shell gradle file for eclipse to have separate projects for ssl-config src and tests
apply from: '../../build.gradle'
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// this is just shell gradle file for eclipse to have separate projects for geo src and tests
// this is just shell gradle file for eclipse to have separate projects for ssl-config src and tests
apply from: '../../build.gradle'
dependencies {
testCompile project(':libs:elasticsearch-ssl-config')
}
}