Skip to content

Commit

Permalink
Textual and Visual Algebra Exploration (#503)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-weber authored Feb 1, 2025
1 parent 7922965 commit f989ee3
Show file tree
Hide file tree
Showing 200 changed files with 10,049 additions and 1,247 deletions.
18 changes: 17 additions & 1 deletion core/build.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
import org.javacc.plugin.gradle.javacc.CompileJavaccTask

buildscript {
dependencies {
// Protobuf
classpath group: "com.google.protobuf", name: "protobuf-gradle-plugin", version: protobuf_plugin_version
}
}

plugins {
id "org.javacc.javacc" version "$javacc_plugin_version"
}

group "org.polypheny"


Expand Down Expand Up @@ -63,6 +69,8 @@ dependencies {

api group: "io.activej", name: "activej-serializer", version: activej_serializer_version


javacc group: "net.java.dev.javacc", name: "javacc", version: javacc_version // BSD 2-clause
// GIS
api group: "org.locationtech.jts", name: "jts-core", version: jts_version // Eclipse Public License 2.0 && Eclipse Distribution License 1.0 (BSD-3 Clause)
api group: "org.locationtech.jts.io", name: "jts-io-common", version: jts_version // Eclipse Public License 2.0 && Eclipse Distribution License 1.0 (BSD-3 Clause)
Expand All @@ -82,11 +90,18 @@ protobuf {
}
}

tasks.register('generateParser', CompileJavaccTask) {
getConventionMapping().map("classpath", { configurations.javacc })
arguments = [static: "false"]
inputDirectory = file("src/main/codegen")
outputDirectory = file(project.buildDir.absolutePath + "/generated-sources/org/polypheny/db/algebra/polyalg/parser")
}


sourceSets {
main {
java {
srcDirs = ["src/main/java", "build/generated/source/proto/main/java"] // "build/generated/sources/annotationProcessor"
srcDirs = ["src/main/java", "build/generated/source/proto/main/java", files("${buildDir}/generated-sources").builtBy(generateParser)] // "build/generated/sources/annotationProcessor"
}
resources {
srcDirs = ["src/main/resources"]
Expand Down Expand Up @@ -116,6 +131,7 @@ tasks.register('generateVersionProperties', Copy) {

compileJava {
dependsOn("generateVersionProperties")
dependsOn("generateParser")
dependsOn(":config:processResources")
dependsOn(":information:processResources")
dependsOn("generateProto")
Expand Down
Loading

0 comments on commit f989ee3

Please sign in to comment.