gradle-plugins/gradle-plugin-jacc
2024-11-03 23:37:21 +01:00
..
src update to OpenJDK 21, Gradle 8.4 2023-10-23 16:58:25 +02:00
build.gradle fix gradle plugin publishing 2023-05-24 22:42:39 +02:00
gradle.properties updte to OpenJDK 21, Gradle 8.5 2024-01-08 00:38:42 +01:00
LICENSE.txt add shadow, jflex, jacc plugins, update to gradle 7.4 2022-02-19 23:05:50 +01:00
README.md more options and better tests for the jlink plugin 2024-11-03 23:37:21 +01:00

gradle-plugin-jacc

A Gradle plugin for Jacc

Usage

    plugins {
       id 'org.xbib.gradle.plugin.jacc'
    }
    
    apply plugin: 'org.xbib.gradle.plugin.jacc'

Gradle will look for your jacc files in the source sets you specified. By default, it looks with the pattern **/*.jacc under src/main/jacc and src/test/jacc.

You can set up the source sets like this:

sourceSets {
  main {
     jacc {
       srcDir "src/main/jacc"
     }
     java {
       srcDir "build/my-generated-sources/jacc"
     }
  }
}

The lastJava srcDir definition will be used as the base for the Jacc target path. If not given, the Jacc target path for generated Java source follows the pattern:

${project.buildDir}/generated/sources/jacc

The Jacc target path will be added automaticlly to the java compile task source directory of the source set.

License

Copyright (C) 2015-2020 Jörg Prante

Licensed 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

http://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.