-
Notifications
You must be signed in to change notification settings - Fork 97
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
Feature/release prep #1
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ bin/ | |
*.iws | ||
.idea/ | ||
out/ | ||
generated_src/ | ||
|
||
# Codegen | ||
.generated | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,42 @@ | ||
buildscript { | ||
repositories { | ||
jcenter() | ||
} | ||
|
||
dependencies { | ||
classpath "com.palantir:gradle-baseline-java:${baselineVersion}" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You don't want to publish to bintray? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I do, but I apply the plugins in the subprojects only. Applying it to the root project gives you an error when you try to run bintrayUpload since it doesn't find config on the root project. |
||
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:${bintrayPlugin}" | ||
} | ||
} | ||
|
||
plugins { | ||
id 'com.palantir.git-version' version '0.2.0' | ||
|
||
id 'idea' | ||
id 'com.palantir.baseline-idea' version '0.1.1' | ||
id 'org.inferred.processors' version '1.1' | ||
id 'com.jfrog.bintray' version '1.2' | ||
} | ||
|
||
apply plugin: 'com.palantir.baseline-config' // provides baselineUpdateConfig task | ||
apply plugin: 'com.palantir.baseline-idea' | ||
|
||
repositories { | ||
jcenter() // needed for baselineUpdateConfig task | ||
} | ||
|
||
allprojects { | ||
group 'com.palantir.remoting.http' | ||
version gitVersion() | ||
} | ||
|
||
subprojects { | ||
plugins.withType(JavaPlugin) { | ||
repositories { | ||
jcenter() | ||
} | ||
apply plugin: 'java' | ||
apply plugin: 'com.palantir.baseline-checkstyle' | ||
apply plugin: 'com.palantir.baseline-eclipse' | ||
apply plugin: 'com.palantir.baseline-findbugs' | ||
apply plugin: 'com.palantir.baseline-idea' | ||
apply plugin: 'org.inferred.processors' | ||
|
||
sourceCompatibility = 1.7 | ||
repositories { | ||
jcenter() | ||
} | ||
|
||
sourceCompatibility = 1.7 | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
# build script | ||
baselineVersion=0.2.2 | ||
bintrayPlugin=1.4 | ||
|
||
# compile | ||
guavaVersion=18.0 | ||
feignVersion=8.10.0 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What was the issue with this approach?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Baseline >0.2.1 ships with a com.baseline.baseline-config plugin (providing "baselineUpdateConfig" task), but that plugin does not work with the plugin mechanism: it does not find a /version.txt file on the classpath :( I suspect this may be a bug with the plugin-upload plugin. So I found it more consistent to apply both baseline-config and baseline-idea using "apply plugin" rather than "plugins".