Skip to content

Commit

Permalink
Interactive Notebooks (polypheny#451)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobias-weber authored Aug 29, 2023
1 parent a3b44f4 commit b4e0f25
Show file tree
Hide file tree
Showing 28 changed files with 3,606 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public Optional<DockerInstance> getInstanceById( int instanceId ) {
}


Optional<DockerInstance> getInstanceForContainer( String uuid ) {
public Optional<DockerInstance> getInstanceForContainer( String uuid ) {
return dockerInstances.values().stream().filter( d -> d.hasContainer( uuid ) ).findFirst();
}

Expand Down
91 changes: 91 additions & 0 deletions plugins/notebooks/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
group "org.polypheny"


dependencies {
compileOnly project(":core")
compileOnly project(":dbms")
compileOnly project(":webui")
compileOnly project(":plugins:sql-language")
compileOnly project(":plugins:mql-language")
compileOnly project(":plugins:cypher-language")

compileOnly(group: "io.javalin", name: "javalin", version: javalin_version) {
exclude(group: "org.slf4j")
}

implementation group: "net.sf.opencsv", name: "opencsv", version: opencsv_version // Apache 2.0
implementation group: "commons-io", name: "commons-io", version: commons_io_version // Apache 2.0


// --- Test Compile ---
testImplementation project(path: ":dbms", configuration: "test")
testImplementation project(path: ":core", configuration: "tests")
testImplementation project(path: ":core")
testImplementation project(path: ":webui")
testImplementation project(path: ":plugins:sql-language")

testImplementation group: "junit", name: "junit", version: junit_version
testImplementation group: "org.hamcrest", name: "hamcrest-core", version: hamcrest_core_version // BSD 3-clause
}


sourceSets {
main {
java {
srcDirs = ["src/main/java"]
outputDir = file(project.buildDir.absolutePath + "/classes")
}
resources {
srcDirs = ["src/main/resources"]
}
output.resourcesDir = file(project.buildDir.absolutePath + "/classes")
}
test {
java {
srcDirs = ["src/test/java"]
outputDir = file(project.buildDir.absolutePath + "/test-classes")
}
resources {
srcDirs = ["src/test/resources"]
}
output.resourcesDir = file(project.buildDir.absolutePath + "/test-classes")
}
}

compileJava {
dependsOn(":config:processResources")
dependsOn(":core:processResources")
dependsOn(":information:processResources")
dependsOn(":webui:processResources")
dependsOn(":plugins:sql-language:processResources")
dependsOn(":plugins:mql-language:processResources")
dependsOn(":plugins:cypher-language:processResources")
}

delombok {
dependsOn(":core:processResources")
dependsOn(":webui:processResources")
dependsOn(":plugins:sql-language:processResources")
dependsOn(":plugins:mql-language:processResources")
dependsOn(":plugins:cypher-language:processResources")
}


/**
* JARs
*/
jar {
manifest {
attributes "Manifest-Version": "1.0"
attributes "Copyright": "The Polypheny Project (polypheny.org)"
attributes "Version": "$project.version"
}
}
java {
withJavadocJar()
withSourcesJar()
}

licensee {
allow('Apache-2.0')
}
27 changes: 27 additions & 0 deletions plugins/notebooks/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#
# Copyright 2019-2023 The Polypheny Project
#
# 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.
#

pluginVersion = 0.0.1

pluginId = notebooks
pluginClass = org.polypheny.db.notebooks.NotebooksPlugin
pluginProvider = The Polypheny Project
pluginDependencies = sql-language, mql-language, cypher-language
pluginUrlPath =
pluginCategories =
pluginPolyDependencies =
pluginIsSystemComponent = false
pluginIsUiVisible = true
Loading

0 comments on commit b4e0f25

Please sign in to comment.