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

AUTO_INCREMENT_ONE_STEP runs for all project in multi-project build #10

Open
Kinmarui opened this issue May 20, 2015 · 0 comments
Open

Comments

@Kinmarui
Copy link

So my structure is as follow:

  • Root Project
    • Client (depends on Commons), used in other projects
    • Commons
    • Server (depends on Commons)

I want to create jar artifacts of commons and client. In those 2 projects I have configured advancedVersioning like

advancedVersioning {
  codeOptions {
      versionCodeType org.moallemi.gradle.internal.VersionCodeType.AUTO_INCREMENT_ONE_STEP
      dependsOnTasks 'uploadarchives'
  }
}

but when I run uploadArchives task inside one project ie Clients both version are updated (Client and Commons) because whole gradle landscape need to be configured as explained here

Currently I found workaround by using different tasknames for different projects (ie. commons):

advancedVersioning {
  codeOptions {
      versionCodeType org.moallemi.gradle.internal.VersionCodeType.AUTO_INCREMENT_ONE_STEP
      dependsOnTasks 'uploadarchivescommons'
  }
}
task uploadArchivesCommons {
}
uploadArchivesCommons.dependsOn uploadArchives
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants