You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by he...@apache.org on 2020/12/06 23:13:32 UTC

[netbeans] branch gradle_build_system updated: Add subproject

This is an automated email from the ASF dual-hosted git repository.

hectorespert pushed a commit to branch gradle_build_system
in repository https://gitbox.apache.org/repos/asf/netbeans.git


The following commit(s) were added to refs/heads/gradle_build_system by this push:
     new 0c1e306  Add subproject
0c1e306 is described below

commit 0c1e30643eda2be84c2d8d8dd59b4074f9b2ce42
Author: Hector Espert <he...@gmail.com>
AuthorDate: Mon Dec 7 00:12:49 2020 +0100

    Add subproject
---
 build.gradle                 | 17 +----------------
 gradle.properties            |  3 +++
 platform/api.io/build.gradle |  7 +++++++
 settings.gradle              |  2 ++
 4 files changed, 13 insertions(+), 16 deletions(-)

diff --git a/build.gradle b/build.gradle
index c40b916..0ed639e 100644
--- a/build.gradle
+++ b/build.gradle
@@ -6,7 +6,7 @@
  */
 
 /*
- * Load 
+ * Todo: Convert to plugin 
  */
 ant.importBuild('nbbuild/build.xml') { antTargetName ->
     'ant-' + antTargetName
@@ -15,18 +15,3 @@ ant.importBuild('nbbuild/build.xml') { antTargetName ->
 tasks.matching { task ->
     task.name.startsWith('ant-')
 }*.group = 'Ant'
-
-task clean(type: Delete) {
-    group = 'Clean'
-    dependsOn = ['ant-clean']
-    delete rootProject.buildDir
-}
-
-task build() {
-    group = 'Build'
-    dependsOn = ['ant-build']
-    mustRunAfter = ['clean']
-    doLast {
-        println 'Hello world!'
-    }
-}
diff --git a/gradle.properties b/gradle.properties
index 6b1823d..0bc3aee 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -1 +1,4 @@
 org.gradle.daemon=false
+action.build.args=ant-build
+action.clean.args=ant-clean
+action.run.args=ant-tryme
diff --git a/platform/api.io/build.gradle b/platform/api.io/build.gradle
new file mode 100644
index 0000000..260bef4
--- /dev/null
+++ b/platform/api.io/build.gradle
@@ -0,0 +1,7 @@
+ant.importBuild('build.xml') { antTargetName ->
+    'ant-' + antTargetName
+}
+
+tasks.matching { task ->
+    task.name.startsWith('ant-')
+}*.group = 'Ant'
\ No newline at end of file
diff --git a/settings.gradle b/settings.gradle
index dbcc9b6..ceb28a0 100644
--- a/settings.gradle
+++ b/settings.gradle
@@ -8,3 +8,5 @@
  */
 
 rootProject.name = 'Apache NetBeans'
+
+include 'platform:api.io'


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists