From d7b91c0790981f61a6f764b4471fb57b307a49a0 Mon Sep 17 00:00:00 2001 From: Andrew Berezovskyi Date: Thu, 17 Nov 2022 01:00:01 +0100 Subject: [PATCH 1/2] Initial support for 'jena' candidate Signed-off-by: Andrew Berezovskyi --- .../io/sdkman/changelogs/JenaMigrations.scala | 77 +++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 src/main/scala/io/sdkman/changelogs/JenaMigrations.scala diff --git a/src/main/scala/io/sdkman/changelogs/JenaMigrations.scala b/src/main/scala/io/sdkman/changelogs/JenaMigrations.scala new file mode 100644 index 00000000..02550e3b --- /dev/null +++ b/src/main/scala/io/sdkman/changelogs/JenaMigrations.scala @@ -0,0 +1,77 @@ +package io.sdkman.changelogs + +import com.github.mongobee.changeset.{ChangeLog, ChangeSet} +import com.mongodb.client.MongoDatabase +import org.bson.Document + +@ChangeLog(order = "100") +class JenaMigrations { + + val CandidateName = "jena" + + @ChangeSet( + order = "001", + id = "001-add_jena_candidate", + author = "berezovskyi" + ) + def migration001(implicit db: MongoDatabase): Candidate = { + Candidate( + candidate = CandidateName, + name = "Apache Jena", + description = + "Apache Jena (or Jena in short) is a free and open source Java framework for building semantic web and Linked Data applications. The framework is composed of different APIs and CLI tools interacting together to process RDF data.", + websiteUrl = "https://jena.apache.org/" + ).insert() + } + @ChangeSet( + order = "003", + id = "003-add_jena_versions", + author = "berezovskyi" + ) + def migration003(implicit db: MongoDatabase): Document = { + List( + "2.12.1", + "2.13.0", + "3.0.1", + "3.1.1", + "3.2.0", + "3.3.0", + "3.4.0", + "3.5.0", + "3.6.0", + "3.7.0", + "3.8.0", + "3.9.0", + "3.10.0", + "3.11.0", + "3.12.0", + "3.13.1", + "3.14.0", + "3.15.0", + "3.16.0", + "3.17.0", + "4.0.0", + "4.1.0", + "4.2.0", + "4.3.0", + "4.3.1", + "4.3.2", + "4.4.0", + "4.5.0", + "4.6.0", + "4.6.1" + ).map( + version => + Version( + candidate = CandidateName, + version = version, + url = + s"http://archive.apache.org/dist/jena/binaries/apache-jena-$version.zip" + ) + ) + .validate() + .insert() + setCandidateDefault(CandidateName, "4.6.1") + } + +} From fdd35b44635aadadb6b377774d8283f438ab56a1 Mon Sep 17 00:00:00 2001 From: Andrew Berezovskyi Date: Tue, 6 Dec 2022 23:03:29 +0100 Subject: [PATCH 2/2] Update JenaMigrations.scala --- src/main/scala/io/sdkman/changelogs/JenaMigrations.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/scala/io/sdkman/changelogs/JenaMigrations.scala b/src/main/scala/io/sdkman/changelogs/JenaMigrations.scala index 02550e3b..7bf3dc86 100644 --- a/src/main/scala/io/sdkman/changelogs/JenaMigrations.scala +++ b/src/main/scala/io/sdkman/changelogs/JenaMigrations.scala @@ -4,7 +4,7 @@ import com.github.mongobee.changeset.{ChangeLog, ChangeSet} import com.mongodb.client.MongoDatabase import org.bson.Document -@ChangeLog(order = "100") +@ChangeLog(order = "74") class JenaMigrations { val CandidateName = "jena" @@ -17,9 +17,9 @@ class JenaMigrations { def migration001(implicit db: MongoDatabase): Candidate = { Candidate( candidate = CandidateName, - name = "Apache Jena", + name = "Jena", description = - "Apache Jena (or Jena in short) is a free and open source Java framework for building semantic web and Linked Data applications. The framework is composed of different APIs and CLI tools interacting together to process RDF data.", + "Apache Jena is a free and open source Java framework for building semantic web and Linked Data applications. The framework is composed of different APIs and CLI tools interacting together to process RDF data.", websiteUrl = "https://jena.apache.org/" ).insert() }