Questions tagged [gradle]

18 questions
10
votes
1 answer

Self-contained projects: Gradle & Maven dependencies offline

I'm trying to get a Java programming project set up in a way that it can be built completely offline just from the files in version control, on any machine, with no prerequisites to install. (Sole exception: the JDK) I don't know much of Maven, but…
Julian
  • 291
  • 2
  • 9
9
votes
1 answer

How to manage non-unit tests in a project?

I have some code in my project I personally call tests that are not unit tests. They are meant to be run and the result has to be evaluated by a human. I did this because I'm making a physics engine and during development, I needed to see what I'm…
Winter
  • 705
  • 8
  • 24
6
votes
1 answer

Maintenance Complexity of Gradle build scripts

I am currently trying out Gradle for my embedded development project. The existing tool is GNU Make. Across the internet I have read a lot of articles where people say that their build logic becomes "too complex" and they would like to reduce…
Müller
  • 161
  • 2
5
votes
1 answer

How to retrieve the third-party library licenses

I am looking for a way to automatically collect all the third-party library licences that my project is using. Currently I am collecting by hand the licences on github. So far , I don't have a clear idea how to get a 3rd party library licence…
Raymond Chenon
  • 191
  • 1
  • 7
3
votes
0 answers

Gradle Flavors vs. App Projects

I've inherited a pretty big and old project with a tiny bit of technical debt which is still under active development. A couple of months ago we made the jump from Eclipse+Ant to Android Studio+Gradle. I don't have much experience with gradle now…
stefs
  • 191
  • 8
3
votes
2 answers

Should I backup gradle dependencies to git?

I always like to backup project dependencies myself in case they can't be resolved due to a down website or because certain versions aren't available for download any more. Should I trust the maven central repository to be up and running when I try…
Rolf ツ
  • 185
  • 6
2
votes
1 answer

Gradle/Java separation public private API

I have a project that has a public API and an internal code. The public part is published on MavenCentral. I thought about making a package each, but everything from the 'internal' package that needs to be accessed from the 'api' package needs to be…
CLOVIS
  • 123
  • 2
2
votes
1 answer

How to depend on forked external dependencies?

Our project uses Gradle (whose dependency system is compatible with Maven IIUC). When depending on external projects, we try to depend on stable versions. Sometimes we have to depend on a development version. And sometimes we have to fork the…
Manuel Jacob
  • 145
  • 3
2
votes
1 answer

Understanding application licenses when using third party libraries in an android project

I'm developing an app for the 2nd time but it's the first time i'm using third party libraries in my application. One of the libraries seems to have an MIT license and the other is the android support library. My main question is practical: How…
2
votes
1 answer

Reliable way of finding the latest version of a Gradle library

in Gradle, when you include a library, you have to add the version number at the end, as such: com.android.support:appcompat-v7:X.X.X But a lot of times, understandably, the website for libraries don't tell you what the actual latest version number…
Siavash
  • 139
  • 7
2
votes
1 answer

Sharing dependency configuration over multiple projects (Maven)

From a big SVN repository we want to switch to Maven/Gradle for handling dependencies so that programmers can work with a single project without checking out the whole thing. We are writing plugins for a server (its interface). Some of our plugins…
K. D.
  • 131
  • 1
  • 4
1
vote
1 answer

Gradle/Maven project splitting: interfaces and implementation

Assume we have a single large JVM project (the example is in Kotlin), containing code. As part of a refactoring effort, we are decoupling pieces of the code by splitting the code into multiple modules, and using a build tool such as Gradle/Maven to…
Hidde
  • 170
  • 7
1
vote
0 answers

How to manage sub-project versioning within large (Gradle) project?

I have a large Gradle project (2+m LOC) with many sub-projects (50-60). I’d like to be able to version each of the sub-projects separately so that they can be published or released independently. Some of the projects depend on each other, e.g. libA…
John
  • 111
  • 1
1
vote
0 answers

Gradle + Git - enforcing a version change upon merge to master

I am leading a team of developers creating a Java library. We are following the standard Semantic Versioning model. The code is versioned with Git. Artifacts are built and pushed to an artifact server using Gradle. As is the standard, the…
J-bob
  • 259
  • 1
  • 5
1
vote
0 answers

How to build Spring Boot multimodule app build to separate WARs and shared library/dependencies?

Currently, I'm trying to migrate multimodule angular + spring 4 app build with ant and ivy to Spring Boot and build it with Gradle. The issue is that I don’t how to create build upon some custom requirements. Currently, app consists of 10 separate…
1
2