diff --git a/build.sbt b/build.sbt index 6ba73c6db1..0813eb2e8d 100644 --- a/build.sbt +++ b/build.sbt @@ -149,6 +149,7 @@ val customScalacOptions = Seq( "-unchecked", "-deprecation", "-Yresolve-term-conflict:package", + "-Wconf:src=target/.*:s", // silence TWIRL templates unused imports warnings "-Wunused:imports", "-Wunused:privates", "-Wunused:locals", diff --git a/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/gravsearch/getIncomingImageLinks.scala.txt b/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/gravsearch/getIncomingImageLinks.scala.txt index afc71703e9..e593473a43 100644 --- a/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/gravsearch/getIncomingImageLinks.scala.txt +++ b/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/gravsearch/getIncomingImageLinks.scala.txt @@ -4,7 +4,6 @@ *@ @import org.knora.webapi._ -@import org.knora.webapi.messages.SmartIri @* * Constructs a Gravsearch query that returns all the knora-api:StillImageRepresentation resources diff --git a/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/admin/changeParentNode.scala.txt b/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/admin/changeParentNode.scala.txt index 5313bb39d9..750c3e4d02 100644 --- a/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/admin/changeParentNode.scala.txt +++ b/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/admin/changeParentNode.scala.txt @@ -4,7 +4,6 @@ *@ @import org.knora.webapi.IRI -@import org.knora.webapi.messages.store.triplestoremessages.StringLiteralV2 @** * Changes the parent node of an existing node. diff --git a/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/admin/checkListNodeExistsByName.scala.txt b/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/admin/checkListNodeExistsByName.scala.txt index 177e8e4a20..80eaa142ac 100644 --- a/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/admin/checkListNodeExistsByName.scala.txt +++ b/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/admin/checkListNodeExistsByName.scala.txt @@ -3,8 +3,6 @@ * SPDX-License-Identifier: Apache-2.0 *@ -@import org.knora.webapi.IRI - @** * Checks if a list node exists. * diff --git a/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/admin/deleteNode.scala.txt b/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/admin/deleteNode.scala.txt index faf9d967ef..38d924b20e 100644 --- a/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/admin/deleteNode.scala.txt +++ b/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/admin/deleteNode.scala.txt @@ -4,7 +4,6 @@ *@ @import org.knora.webapi.IRI -@import org.knora.webapi.messages.store.triplestoremessages.StringLiteralV2 @** * Delete a node (root or child). If a child node is deleted, remove it from the list of its parent's sublist nodes. diff --git a/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/admin/deletePermission.scala.txt b/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/admin/deletePermission.scala.txt index a96e0c7492..cb8824258c 100644 --- a/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/admin/deletePermission.scala.txt +++ b/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/admin/deletePermission.scala.txt @@ -4,7 +4,6 @@ *@ @import org.knora.webapi.IRI -@import org.knora.webapi.messages.store.triplestoremessages.StringLiteralV2 @** * Delete an existing permission. diff --git a/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/admin/getFileValue.scala.txt b/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/admin/getFileValue.scala.txt index fa03be67d5..0b6e54b683 100644 --- a/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/admin/getFileValue.scala.txt +++ b/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/admin/getFileValue.scala.txt @@ -3,8 +3,6 @@ * SPDX-License-Identifier: Apache-2.0 *@ -@import org.knora.webapi.IRI - @** * Given a knora:base:internalFilename, retrieves the file value and information * attached to it using SPARQL w/o inference. diff --git a/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/admin/getProjectOfEntity.scala.txt b/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/admin/getProjectOfEntity.scala.txt index ceff7d9147..8c7e1ca217 100644 --- a/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/admin/getProjectOfEntity.scala.txt +++ b/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/admin/getProjectOfEntity.scala.txt @@ -4,7 +4,6 @@ *@ @import org.knora.webapi.IRI -@import org.knora.webapi.messages.util.KnoraSystemInstances @** * Gets the project an entity (resource or value) is attached to. diff --git a/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/admin/updateNodePosition.scala.txt b/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/admin/updateNodePosition.scala.txt index bc1348d98e..d7f8bc2679 100644 --- a/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/admin/updateNodePosition.scala.txt +++ b/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/admin/updateNodePosition.scala.txt @@ -4,7 +4,6 @@ *@ @import org.knora.webapi.IRI -@import org.knora.webapi.messages.store.triplestoremessages.StringLiteralV2 @** * Updates an existing node's position. diff --git a/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/admin/updatePermission.scala.txt b/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/admin/updatePermission.scala.txt index 6c70656cbf..78ae7e42c2 100644 --- a/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/admin/updatePermission.scala.txt +++ b/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/admin/updatePermission.scala.txt @@ -4,7 +4,6 @@ *@ @import org.knora.webapi.IRI -@import org.knora.webapi.messages.store.triplestoremessages.StringLiteralV2 @** * Updates an existing permission's properties. diff --git a/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/v2/changePropertyGuiElement.scala.txt b/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/v2/changePropertyGuiElement.scala.txt index 346a47ed43..a7d81b6e26 100644 --- a/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/v2/changePropertyGuiElement.scala.txt +++ b/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/v2/changePropertyGuiElement.scala.txt @@ -3,9 +3,7 @@ * SPDX-License-Identifier: Apache-2.0 *@ -@import dsp.errors.SparqlGenerationException @import org.knora.webapi.messages.SmartIri -@import org.knora.webapi.messages.store.triplestoremessages.StringLiteralV2 @import java.time.Instant @* diff --git a/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/v2/createProperty.scala.txt b/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/v2/createProperty.scala.txt index 3dcaf6e201..3a469e79dd 100644 --- a/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/v2/createProperty.scala.txt +++ b/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/v2/createProperty.scala.txt @@ -6,7 +6,6 @@ @import org.knora.webapi._ @import org.knora.webapi.messages.SmartIri @import org.knora.webapi.messages.v2.responder.ontologymessages._ -@import org.knora.webapi.messages.StringFormatter @import org.knora.webapi.messages.store.triplestoremessages._ @import java.time.Instant diff --git a/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/v2/deleteClass.scala.txt b/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/v2/deleteClass.scala.txt index 4a10309390..616b361879 100644 --- a/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/v2/deleteClass.scala.txt +++ b/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/v2/deleteClass.scala.txt @@ -5,7 +5,6 @@ @import org.knora.webapi._ @import org.knora.webapi.messages.SmartIri -@import org.knora.webapi.messages.v2.responder.ontologymessages._ @import java.time.Instant @* diff --git a/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/v2/deleteProperty.scala.txt b/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/v2/deleteProperty.scala.txt index ca254a46d0..2e878c4223 100644 --- a/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/v2/deleteProperty.scala.txt +++ b/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/v2/deleteProperty.scala.txt @@ -5,7 +5,6 @@ @import org.knora.webapi._ @import org.knora.webapi.messages.SmartIri -@import org.knora.webapi.messages.v2.responder.ontologymessages._ @import java.time.Instant @* diff --git a/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/v2/deleteValue.scala.txt b/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/v2/deleteValue.scala.txt index 7889a56d98..c784acb731 100644 --- a/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/v2/deleteValue.scala.txt +++ b/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/v2/deleteValue.scala.txt @@ -4,8 +4,6 @@ *@ @import java.time.Instant -@import java.util.UUID -@import dsp.valueobjects.UuidUtil @import org.knora.webapi._ @import dsp.errors.SparqlGenerationException @import org.knora.webapi.messages.SmartIri diff --git a/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/v2/eraseResource.scala.txt b/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/v2/eraseResource.scala.txt index 0bfff17980..610ebe21e1 100644 --- a/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/v2/eraseResource.scala.txt +++ b/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/v2/eraseResource.scala.txt @@ -3,7 +3,6 @@ * SPDX-License-Identifier: Apache-2.0 *@ -@import java.time.Instant @import org.knora.webapi._ @** diff --git a/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/v2/getAllOntologyMetadata.scala.txt b/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/v2/getAllOntologyMetadata.scala.txt index 1a8cc1cfcb..7766b432d0 100644 --- a/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/v2/getAllOntologyMetadata.scala.txt +++ b/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/v2/getAllOntologyMetadata.scala.txt @@ -3,8 +3,6 @@ * SPDX-License-Identifier: Apache-2.0 *@ -@import org.knora.webapi.IRI - @* * Gets the predicates and objects of an ontology IRI. *@ diff --git a/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/v2/getAllResourcesInProjectPrequery.scala.txt b/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/v2/getAllResourcesInProjectPrequery.scala.txt index 9decba4711..5651e35d4a 100644 --- a/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/v2/getAllResourcesInProjectPrequery.scala.txt +++ b/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/v2/getAllResourcesInProjectPrequery.scala.txt @@ -4,7 +4,6 @@ *@ @import org.knora.webapi._ -@import org.knora.webapi.messages.SmartIri @* * Constructs a prequery that gets all resources from the specified project diff --git a/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/v2/getResourcePropertiesAndValues.scala.txt b/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/v2/getResourcePropertiesAndValues.scala.txt index 248fb09012..f60eb012f0 100644 --- a/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/v2/getResourcePropertiesAndValues.scala.txt +++ b/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/v2/getResourcePropertiesAndValues.scala.txt @@ -7,7 +7,6 @@ @import java.util.UUID @import dsp.valueobjects.UuidUtil @import org.knora.webapi.IRI -@import dsp.errors.SparqlGenerationException @import org.knora.webapi.messages.SmartIri @* diff --git a/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/v2/isEntityUsed.scala.txt b/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/v2/isEntityUsed.scala.txt index 72de11a2cd..fae712a0a2 100644 --- a/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/v2/isEntityUsed.scala.txt +++ b/webapi/src/main/twirl/org/knora/webapi/messages/twirl/queries/sparql/v2/isEntityUsed.scala.txt @@ -3,8 +3,6 @@ * SPDX-License-Identifier: Apache-2.0 *@ -@import org.knora.webapi.messages.SmartIri - @* * Checks whether an entity is used (i.e. is the object of any statements). *