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

jdaugherty pushed a commit to branch corrupt-jar-fixes
in repository https://gitbox.apache.org/repos/asf/grails-core.git

commit d9c4f4746b0800ee10b0b9e730afeb17cd991ea1
Author: James Daugherty <[email protected]>
AuthorDate: Thu May 15 16:17:35 2025 -0400

    disable bootJar / bootArchive since no valid application class exists for 
grails-geb
---
 grails-geb/build.gradle | 40 ++++++++++++++++++++++++++--------------
 1 file changed, 26 insertions(+), 14 deletions(-)

diff --git a/grails-geb/build.gradle b/grails-geb/build.gradle
index 31872584ea..df15557a71 100644
--- a/grails-geb/build.gradle
+++ b/grails-geb/build.gradle
@@ -1,22 +1,25 @@
 /*
- *  Licensed to the Apache Software Foundation (ASF) under one
- *  or more contributor license agreements.  See the NOTICE file
- *  distributed with this work for additional information
- *  regarding copyright ownership.  The ASF licenses this file
- *  to you under the Apache License, Version 2.0 (the
- *  "License"); you may not use this file except in compliance
- *  with the License.  You may obtain a copy of the License at
+ *  Licensed to the Apache Software Foundation (ASF) under one or more
+ *  contributor license agreements.  See the NOTICE file distributed with
+ *  this work for additional information regarding copyright ownership.
+ *  The ASF licenses this file to You under the Apache License, Version 2.0
+ *  (the "License"); you may not use this file except in compliance with
+ *  the License.  You may obtain a copy of the License at
  *
- *    https://www.apache.org/licenses/LICENSE-2.0
+ *      https://www.apache.org/licenses/LICENSE-2.0
  *
- *  Unless required by applicable law or agreed to in writing,
- *  software distributed under the License is distributed on an
- *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- *  KIND, either express or implied.  See the License for the
- *  specific language governing permissions and limitations
- *  under the License.
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License.
  */
 
+import org.springframework.boot.gradle.tasks.bundling.BootArchive
+import org.springframework.boot.gradle.tasks.bundling.BootJar
+
+
+
 plugins {
     id 'java-library'
     id 'java-test-fixtures'
@@ -64,6 +67,15 @@ dependencies {
     compileOnly 'org.gebish:geb-spock'
 }
 
+// geb can't build a valid bootJar because it isn't an application, it's only 
a plugin
+tasks.withType(BootJar).configureEach {
+    it.enabled = false
+}
+
+tasks.withType(BootArchive).configureEach {
+    it.enabled = false
+}
+
 apply {
     // java-configuration must be applied first since tasks are now lazy 
registered
     from rootProject.layout.projectDirectory.file('gradle/java-config.gradle')

Reply via email to