Can Gradle buildTypes be used for non-android projects?

Since Gradle has gained popularity among Android developers, and since the gradle-android plugin gets a lot of development, the build system is now quite easy to use and offers a lot of functionality for developing Android apps.

My question is, can these sweet things also be used when creating a pure java (i.e. non-android) project? Things like buildType make sense in a non-android context too.

I am used to using Gradle, but I need to do a clean Java project and I want to improve my Gradle knowledge (it is a little more complicated when using it) and I do not want to go into another assembly as maven or ant.

+3
java gradle


source to share


No one has answered this question yet

Check out similar questions:

3288
Correct use cases for Android UserManager.isUserAGoat ()?
1206
What is Gradle in Android Studio?
539
Gradle build without tests
425
How do I force gradle to re-download dependencies?
75
Error: Unfortunately, you cannot have non-Gradle Java and> Android-Gradle modules in the same project
ten
Apply config to specific projects in gradle build script
4
Build type support for Java modules in Android Gradle project?
2
Intellij failed to compile gradient project
0
How to add a dependent project to an android gradient project that builds a debug or release jar appropriately
0
Define a line in Gradle in a non android project.



All Articles
Loading...
X
Show
Funny
Dev
Pics