From ebf5d069e038bbbfeb6f04b1b2eb71503f09126b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Katona=20=C3=81ron?= Date: Tue, 15 Mar 2022 16:27:37 +0200 Subject: [PATCH 1/4] Add Dockerfile --- Dockerfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..009a874 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM swipl:8.5.5 + +RUN mkdir /app +COPY make_exe.sh *.pl /app/ + + +WORKDIR /app + +RUN /app/make_exe.sh + +CMD /app/owl_to_ace.exe -httpserver -port 5123 + +EXPOSE 5123 From 9dca92f8bbc3ca97db0b2194d6900ae31f7f45aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Katona=20=C3=81ron?= Date: Tue, 15 Mar 2022 17:04:41 +0200 Subject: [PATCH 2/4] Add gradle support --- java/build.gradle.kts | 39 +++++++++++++++++++++++++++++++++++++++ java/settings.gradle.kts | 1 + 2 files changed, 40 insertions(+) create mode 100644 java/build.gradle.kts create mode 100644 java/settings.gradle.kts diff --git a/java/build.gradle.kts b/java/build.gradle.kts new file mode 100644 index 0000000..56bb3ef --- /dev/null +++ b/java/build.gradle.kts @@ -0,0 +1,39 @@ +plugins { + java +} + +group = "ch.uzh.ifi.attempto.owl" +version = "20110612" + +java { + sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 +} + +dependencies { + implementation("commons-logging:commons-logging:1.2") + implementation("org.apache.httpcomponents:httpclient:4.5.13") + implementation("org.apache.httpcomponents:httpcore:4.4.15") + + testImplementation("junit:junit:4.13.2") +} + +repositories { + mavenCentral() +} + + +sourceSets { + main { + java { + srcDir("src") + } + } + + test { + java { + srcDir("test") + } + } +} + diff --git a/java/settings.gradle.kts b/java/settings.gradle.kts new file mode 100644 index 0000000..f41b791 --- /dev/null +++ b/java/settings.gradle.kts @@ -0,0 +1 @@ +rootProject.name = "owl-verbalizer" From 0c5731bcc0229f8639171a56f15864af7ee52fa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Katona=20=C3=81ron?= Date: Tue, 22 Mar 2022 12:36:12 +0200 Subject: [PATCH 3/4] Rollback to previous dependency versions --- java/build.gradle.kts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/java/build.gradle.kts b/java/build.gradle.kts index 56bb3ef..97e8cf6 100644 --- a/java/build.gradle.kts +++ b/java/build.gradle.kts @@ -11,11 +11,11 @@ java { } dependencies { - implementation("commons-logging:commons-logging:1.2") - implementation("org.apache.httpcomponents:httpclient:4.5.13") - implementation("org.apache.httpcomponents:httpcore:4.4.15") + implementation("commons-logging:commons-logging:1.1") + implementation("org.apache.httpcomponents:httpclient:4.1.1") + implementation("org.apache.httpcomponents:httpcore:4.1.1") - testImplementation("junit:junit:4.13.2") + testImplementation("junit:junit:4.5") } repositories { From 5ed99fa4db037ecd9e18aa27199bb80cb9a16d6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Katona=20=C3=81ron?= Date: Wed, 27 Apr 2022 11:47:37 +0300 Subject: [PATCH 4/4] Added gitignore --- java/.gitignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 java/.gitignore diff --git a/java/.gitignore b/java/.gitignore new file mode 100644 index 0000000..567609b --- /dev/null +++ b/java/.gitignore @@ -0,0 +1 @@ +build/