You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2020/10/10 00:29:05 UTC

[groovy] branch GROOVY-8258 updated: GROOVY-8258: tweak build script of GINQ module

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

sunlan pushed a commit to branch GROOVY-8258
in repository https://gitbox.apache.org/repos/asf/groovy.git


The following commit(s) were added to refs/heads/GROOVY-8258 by this push:
     new 374e593  GROOVY-8258: tweak build script of GINQ module
374e593 is described below

commit 374e5938519145a94fa6c9ec287f7e107df572db
Author: Daniel Sun <su...@apache.org>
AuthorDate: Sat Oct 10 08:28:49 2020 +0800

    GROOVY-8258: tweak build script of GINQ module
---
 subprojects/groovy-linq/build.gradle | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/subprojects/groovy-linq/build.gradle b/subprojects/groovy-linq/build.gradle
index 6a7aabb..62244fd 100644
--- a/subprojects/groovy-linq/build.gradle
+++ b/subprojects/groovy-linq/build.gradle
@@ -16,17 +16,22 @@
  *  specific language governing permissions and limitations
  *  under the License.
  */
+plugins {
+    id 'org.apache.groovy-library'
+}
 
 dependencies {
     implementation rootProject
     implementation project(':groovy-macro')
-    testImplementation rootProject.sourceSets.test.runtimeClasspath
     testImplementation project(':groovy-test')
     testImplementation project(':groovy-json')
 }
 
-task moduleDescriptor(type: org.codehaus.groovy.gradle.WriteExtensionDescriptorTask) {
-    extensionClasses = 'org.apache.groovy.linq.GinqGroovyMethods'
+groovyLibrary {
+    optionalModule()
+    withoutBinaryCompatibilityChecks()
+    moduleDescriptor {
+        extensionClasses = 'org.apache.groovy.linq.GinqGroovyMethods'
+    }
 }
 
-compileJava.dependsOn moduleDescriptor