Skip to main content
deleted 16 characters in body
Source Link
tkruse
  • 10.8k
  • 7
  • 59
  • 89

Do you need both jars to be created with a single run of gradle? If not, it could be as easy as using some additional argument to gradle, such as

compileJava { options.debug = project.hasProperty('debugBuild') } gradle assemble -PdebugBuild=true # or falsePdebugBuild 

See here for documentation: https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_properties_and_system_properties

Also not that you might get better help in the gradle forums.

Do you need both jars to be created with a single run of gradle? If not, it could be as easy as using some additional argument to gradle, such as

compileJava { options.debug = project.hasProperty('debugBuild') } gradle assemble -PdebugBuild=true # or false 

See here for documentation: https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_properties_and_system_properties

Also not that you might get better help in the gradle forums.

Do you need both jars to be created with a single run of gradle? If not, it could be as easy as using some additional argument to gradle, such as

compileJava { options.debug = project.hasProperty('debugBuild') } gradle assemble -PdebugBuild 

See here for documentation: https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_properties_and_system_properties

Also not that you might get better help in the gradle forums.

Bounty Awarded with 100 reputation awarded by CommunityBot
Source Link
tkruse
  • 10.8k
  • 7
  • 59
  • 89

Do you need both jars to be created with a single run of gradle? If not, it could be as easy as using some additional argument to gradle, such as

compileJava { options.debug = project.hasProperty('debugBuild') } gradle assemble -PdebugBuild=true # or false 

See here for documentation: https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_properties_and_system_properties

Also not that you might get better help in the gradle forums.