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

Take TP config for travis #3

Merged
merged 6 commits into from Jun 20, 2017
Merged

Take TP config for travis #3

merged 6 commits into from Jun 20, 2017

Conversation

stephanenicolas
Copy link
Collaborator

@stephanenicolas stephanenicolas commented Jun 17, 2017

Solves #1

  • build status added to README

@ reviewers, feel free to squash and merge.

You need to configure your ~/.gradle/gradle.properties file
and add
SONATYPE_NEXUS_USERNAME=<your username on sonatype>
SONATYPE_NEXUS_PASSWORD=<your password>
.travis.yml Outdated
- $HOME/.m2

script:
- ./gradlew clean build check test
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check and test are already part of build --> ./gradlew clean build

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right. I will remove them

#sonatype username and password
env:
global:
- secure: "kKtE5tdRk0mHuEQfBo+nbl32l/coGJokFRNA8CsETlfasAwoAqAZjEuME61t1o8NIhkXieDs+dcYIl28GPxbcgdpF+Ja+ztMAZpgs3bEeGrQBx1appKHaUe2rOcJY79fHuNxeDrwMyl7b2Jcx1c9TBXG2SI95zsSQiHsWJixEqiJ5V8y/T0SmlSxwDc14Alt4cdFT+CtgkdJSZmKdubb65E8Z0s62N3TUcrAOR1e6tMccpEdXdMqZ19bnSp1m5FRx5dUuW0NmhIwSK6e32yy5Ei6MCtvIfBK+X3nSZx3sJ/wuZ36IDw6DJ6oGRj2eTJecswd9Oxlz22LERyl29nyzqQ73ch6h4f9pHW6LnJ0PICb1vn2FrR8SYNK6reoU/DnhI/Aixqqesu1k0TnxGcnmHnPTDOeOlkE2gwDb+2PbKK71b5GVBGb/SxXeu5Y5s1hO2y+3Z0OOVaDwrUgHFgZyUQxE1QiFhhBRBpjr5cxcNIvUc4yMBrPHZkTbNObMfLQgkkn8z89gFOMgkrWzMZSFEWN+8YhZjHVhe6PMBNOdBC2e7GojJdtCKcr5QSKeKf1laR2kTQpHpNmwAH6D/7+kpYpyMVKMER1h+sVHphr/lLB+/e/okCxti1Ngbjb7ml66Du4tzUzJILCaWELdvWCYDZpiZOTJnmoNswQYi/dUXU="
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be hidden?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the mechanism to hide a value. It is encrypted here.

* limitations under the License.
*/

apply plugin: 'maven'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the old maven Gradle plugin. We should adopt the new one in the future:
https://docs.gradle.org/3.3/userguide/publishing_maven.html

In addition, I think we should explore the option of including some of the Netflix's Nebula plugins:
https://github.com/nebula-plugins

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was trying to read about the advantage of using it. I see many OSS projects using it. Do you mind if we create a ticket after the first release is done to try them out ? I don't wanna mix too many things, already the release process has its own problems to deal with which might not be so easy for a first release.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I think this should be done separately 👍

sign configurations.archives
}

if (project.getPlugins().hasPlugin('com.android.application') ||
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need to OSS my android-maven-publish Gradle plugin :P

@@ -2,6 +2,7 @@ apply plugin: 'java'
apply plugin: 'me.tatarka.retrolambda'
apply from: rootProject.file("${quality_gradle_java_file}")
apply plugin: 'com.github.hierynomus.license'
apply from: rootProject.file('gradle/gradle-mvn-push.gradle')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be applied from the parent build.gradle?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't want to publish the samples, so I added it on a per module basis.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should work:

configure(allprojects - project(':grox-sample') - project(':grox-sample-rx')) {
   apply from: rootProject.file('gradle/gradle-mvn-push.gradle') 
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another option is:

allprojects {
    if (!it.name.startsWith('grox-sample')) {
        apply from: rootProject.file('gradle/gradle-mvn-push.gradle')
    }
}

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure we can do something like this, but isn't it better to have it inside the project then, as it is ? Relying on module names is a bit fragile IMHO.

@saguinav
Copy link
Collaborator

:shipit:

@stephanenicolas stephanenicolas merged commit 46fd38d into master Jun 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants