forked from ONSdigital/csvw-check
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish JAR to GitHub Maven package repo (ONSdigital#111)
Adds publishTo for uploading to GitHub Maven packages. Set org to io.github.gss-cogs. Bump version to current tagged version. Revert Akka to last open source version. Bump logback to 1.5.3. Checkout code before setting up Java/Scala as it needs build.sbt Use temurin rather than adopt JDK due to deprecation. Add sbt publish step. Add copyright & license headers to source.
- Loading branch information
Showing
57 changed files
with
908 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name := "csvw-check" | ||
|
||
organization := "ONS" | ||
version := "0.0.1" | ||
organization := "io.github.gss-cogs" | ||
version := "0.0.3" | ||
maintainer := "[email protected]" | ||
|
||
scalaVersion := "2.13.4" | ||
|
@@ -28,8 +28,8 @@ libraryDependencies += "io.spray" %% "spray-json" % "1.3.6" | |
libraryDependencies += "org.apache.jena" % "jena-arq" % "4.4.0" | ||
libraryDependencies += "joda-time" % "joda-time" % "2.12.2" | ||
libraryDependencies += "com.github.scopt" %% "scopt" % "4.1.0" | ||
libraryDependencies += "com.typesafe.akka" %% "akka-stream" % "2.8.0" | ||
libraryDependencies += "ch.qos.logback" % "logback-classic" % "1.4.6" | ||
libraryDependencies += "com.typesafe.akka" %% "akka-stream" % "2.6.21" | ||
libraryDependencies += "ch.qos.logback" % "logback-classic" % "1.5.3" | ||
libraryDependencies += "com.typesafe.scala-logging" %% "scala-logging" % "3.9.5" | ||
libraryDependencies += "com.fasterxml.jackson.core" % "jackson-databind" % "2.14.2" | ||
libraryDependencies += "com.fasterxml.jackson.core" % "jackson-annotations" % "2.14.2" | ||
|
@@ -38,51 +38,16 @@ libraryDependencies += "com.softwaremill.sttp.client3" %% "core" % "3.8.15" | |
libraryDependencies += "com.ibm.icu" % "icu4j" % "72.1" | ||
libraryDependencies += "org.apache.commons" % "commons-csv" % "1.10.0" | ||
libraryDependencies += "com.chuusai" %% "shapeless" % "2.3.10" | ||
// Here, `libraryDependencies` is a set of dependencies, and by using `+=`, | ||
// we're adding the scala-parser-combinators dependency to the set of dependencies | ||
// that sbt will go and fetch when it starts up. | ||
// Now, in any Scala file, you can import classes, objects, etc., from | ||
// scala-parser-combinators with a regular import. | ||
|
||
// TIP: To find the "dependency" that you need to add to the | ||
// `libraryDependencies` set, which in the above example looks like this: | ||
|
||
// "org.scala-lang.modules" %% "scala-parser-combinators" % "1.1.2" | ||
|
||
// You can use Scaladex, an index of all known published Scala libraries. There, | ||
// after you find the library you want, you can just copy/paste the dependency | ||
// information that you need into your build file. For example, on the | ||
// scala/scala-parser-combinators Scaladex page, | ||
// https://index.scala-lang.org/scala/scala-parser-combinators, you can copy/paste | ||
// the sbt dependency from the sbt box on the right-hand side of the screen. | ||
|
||
// IMPORTANT NOTE: while build files look _kind of_ like regular Scala, it's | ||
// important to note that syntax in *.sbt files doesn't always behave like | ||
// regular Scala. For example, notice in this build file that it's not required | ||
// to put our settings into an enclosing object or class. Always remember that | ||
// sbt is a bit different, semantically, than vanilla Scala. | ||
|
||
// ============================================================================ | ||
|
||
// Most moderately interesting Scala projects don't make use of the very simple | ||
// build file style (called "bare style") used in this build.sbt file. Most | ||
// intermediate Scala projects make use of so-called "multi-project" builds. A | ||
// multi-project build makes it possible to have different folders which sbt can | ||
// be configured differently for. That is, you may wish to have different | ||
// dependencies or different testing frameworks defined for different parts of | ||
// your codebase. Multi-project builds make this possible. | ||
|
||
// Here's a quick glimpse of what a multi-project build looks like for this | ||
// build, with only one "subproject" defined, called `root`: | ||
|
||
// lazy val root = (project in file(".")). | ||
// settings( | ||
// inThisBuild(List( | ||
// organization := "ch.epfl.scala", | ||
// scalaVersion := "2.13.1" | ||
// )), | ||
// name := "hello-world" | ||
// ) | ||
|
||
// To learn more about multi-project builds, head over to the official sbt | ||
// documentation at http://www.scala-sbt.org/documentation.html | ||
publishTo := Some("GitHub Maven package repo for GSS-Cogs" at "https://maven.pkg.github.com/gss-cogs/csvw-check") | ||
publishMavenStyle := true | ||
credentials += Credentials( | ||
"GitHub Package Registry", | ||
"maven.pkg.github.com", | ||
"gss-cogs", | ||
sys.env.getOrElse("GITHUB_TOKEN", "") | ||
) | ||
|
||
organizationName := "Crown Copyright (Office for National Statistics)" | ||
startYear := Some(2020) | ||
licenses += ("Apache-2.0", new URL("https://www.apache.org/licenses/LICENSE-2.0.txt")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/main/scala/csvwcheck/errors/CascadeToOtherFilesError.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,19 @@ | ||
/* | ||
* Copyright 2020 Crown Copyright (Office for National Statistics) | ||
* | ||
* 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. | ||
*/ | ||
|
||
package csvwcheck.errors | ||
|
||
case class ErrorWithoutContext(`type`: String, content: String) |
16 changes: 16 additions & 0 deletions
16
src/main/scala/csvwcheck/errors/GeneralCsvwLoadError.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/main/scala/csvwcheck/errors/MessageWithCsvContext.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.