Skip to content

Commit

Permalink
chore: Add sbt-header plugin to webapi project and add missing headers (
Browse files Browse the repository at this point in the history
  • Loading branch information
seakayone committed Dec 5, 2022
1 parent f10d85b commit afec4a7
Show file tree
Hide file tree
Showing 19 changed files with 90 additions and 1 deletion.
9 changes: 8 additions & 1 deletion build.sbt
Expand Up @@ -24,7 +24,14 @@ lazy val aggregatedProjects: Seq[ProjectReference] = Seq(webapi, sipi)

lazy val buildSettings = Seq(
organization := "org.knora",
version := (ThisBuild / version).value
version := (ThisBuild / version).value,
headerLicense := Some(
HeaderLicense.Custom(
"""|Copyright © 2021 - 2022 Swiss National Data and Service Center for the Humanities and/or DaSCH Service Platform contributors.
|SPDX-License-Identifier: Apache-2.0
|""".stripMargin
)
)
)

lazy val rootBaseDir = ThisBuild / baseDirectory
Expand Down
1 change: 1 addition & 0 deletions project/plugins.sbt
Expand Up @@ -16,6 +16,7 @@ addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.9.3")
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.11.0")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.0")
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.10.4")
addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.9.0")

// ad-hoc plugins - uncomment on demenad and keep it commented out in main branch

Expand Down
1 change: 1 addition & 0 deletions webapi/src/main/scala/org/knora/webapi/Main.scala
Expand Up @@ -2,6 +2,7 @@
* Copyright © 2021 - 2022 Swiss National Data and Service Center for the Humanities and/or DaSCH Service Platform contributors.
* SPDX-License-Identifier: Apache-2.0
*/

package org.knora.webapi

import zio._
Expand Down
5 changes: 5 additions & 0 deletions webapi/src/main/scala/org/knora/webapi/auth/JWTService.scala
@@ -1,3 +1,8 @@
/*
* Copyright © 2021 - 2022 Swiss National Data and Service Center for the Humanities and/or DaSCH Service Platform contributors.
* SPDX-License-Identifier: Apache-2.0
*/

package org.knora.webapi.auth

import spray.json.JsValue
Expand Down
5 changes: 5 additions & 0 deletions webapi/src/main/scala/org/knora/webapi/config/AppConfig.scala
@@ -1,3 +1,8 @@
/*
* Copyright © 2021 - 2022 Swiss National Data and Service Center for the Humanities and/or DaSCH Service Platform contributors.
* SPDX-License-Identifier: Apache-2.0
*/

package org.knora.webapi.config

import com.typesafe.config.ConfigFactory
Expand Down
@@ -1,3 +1,8 @@
/*
* Copyright © 2021 - 2022 Swiss National Data and Service Center for the Humanities and/or DaSCH Service Platform contributors.
* SPDX-License-Identifier: Apache-2.0
*/

package org.knora.webapi.core

import zhttp.service.Server
Expand Down
5 changes: 5 additions & 0 deletions webapi/src/main/scala/org/knora/webapi/core/LayersLive.scala
@@ -1,3 +1,8 @@
/*
* Copyright © 2021 - 2022 Swiss National Data and Service Center for the Humanities and/or DaSCH Service Platform contributors.
* SPDX-License-Identifier: Apache-2.0
*/

package org.knora.webapi.core

import zio.ULayer
Expand Down
@@ -1,3 +1,8 @@
/*
* Copyright © 2021 - 2022 Swiss National Data and Service Center for the Humanities and/or DaSCH Service Platform contributors.
* SPDX-License-Identifier: Apache-2.0
*/

package org.knora.webapi.messages.v2.responder.resourcemessages

/**
Expand Down
@@ -1,3 +1,8 @@
/*
* Copyright © 2021 - 2022 Swiss National Data and Service Center for the Humanities and/or DaSCH Service Platform contributors.
* SPDX-License-Identifier: Apache-2.0
*/

package org.knora.webapi.store.cache.config

final case class CacheServiceConfig(enabled: Boolean, redis: RedisConfig)
Expand Down
@@ -1,3 +1,8 @@
/*
* Copyright © 2021 - 2022 Swiss National Data and Service Center for the Humanities and/or DaSCH Service Platform contributors.
* SPDX-License-Identifier: Apache-2.0
*/

package org.knora.webapi.store.iiif.api

import zio._
Expand Down
@@ -1,3 +1,8 @@
/*
* Copyright © 2021 - 2022 Swiss National Data and Service Center for the Humanities and/or DaSCH Service Platform contributors.
* SPDX-License-Identifier: Apache-2.0
*/

package org.knora.webapi.store.iiif.domain

import akka.http.scaladsl.marshallers.sprayjson.SprayJsonSupport
Expand Down
@@ -1,3 +1,8 @@
/*
* Copyright © 2021 - 2022 Swiss National Data and Service Center for the Humanities and/or DaSCH Service Platform contributors.
* SPDX-License-Identifier: Apache-2.0
*/

package org.knora.webapi.store.iiif.errors

import com.typesafe.scalalogging.Logger
Expand Down
@@ -1,3 +1,8 @@
/*
* Copyright © 2021 - 2022 Swiss National Data and Service Center for the Humanities and/or DaSCH Service Platform contributors.
* SPDX-License-Identifier: Apache-2.0
*/

package org.knora.webapi.store.triplestore.api

import zio._
Expand Down
@@ -1,3 +1,8 @@
/*
* Copyright © 2021 - 2022 Swiss National Data and Service Center for the Humanities and/or DaSCH Service Platform contributors.
* SPDX-License-Identifier: Apache-2.0
*/

package org.knora.webapi.store.triplestore.defaults

import zio.NonEmptyChunk
Expand Down
@@ -1,3 +1,8 @@
/*
* Copyright © 2021 - 2022 Swiss National Data and Service Center for the Humanities and/or DaSCH Service Platform contributors.
* SPDX-License-Identifier: Apache-2.0
*/

package org.knora.webapi.store.triplestore.errors

import com.typesafe.scalalogging.Logger
Expand Down
@@ -1,3 +1,8 @@
/*
* Copyright © 2021 - 2022 Swiss National Data and Service Center for the Humanities and/or DaSCH Service Platform contributors.
* SPDX-License-Identifier: Apache-2.0
*/

package org.knora.webapi.store.triplestore.upgrade

import com.typesafe.scalalogging.Logger
Expand Down
@@ -1,3 +1,8 @@
/*
* Copyright © 2021 - 2022 Swiss National Data and Service Center for the Humanities and/or DaSCH Service Platform contributors.
* SPDX-License-Identifier: Apache-2.0
*/

package org.knora.webapi.store.triplestore.upgrade

import com.typesafe.scalalogging.Logger
Expand Down
@@ -1,3 +1,8 @@
/*
* Copyright © 2021 - 2022 Swiss National Data and Service Center for the Humanities and/or DaSCH Service Platform contributors.
* SPDX-License-Identifier: Apache-2.0
*/

package org.knora.webapi.store.triplestore.upgrade

import org.knora.webapi.messages.util.rdf.RdfModel
Expand Down
5 changes: 5 additions & 0 deletions webapi/src/main/scala/org/knora/webapi/util/Debug.scala
@@ -1,3 +1,8 @@
/*
* Copyright © 2021 - 2022 Swiss National Data and Service Center for the Humanities and/or DaSCH Service Platform contributors.
* SPDX-License-Identifier: Apache-2.0
*/

package org.knora.webapi.util

/**
Expand Down

0 comments on commit afec4a7

Please sign in to comment.