From 924c27c9d05c869c49bbc910735dda73dc78341f Mon Sep 17 00:00:00 2001 From: kxbmap Date: Thu, 21 Oct 2021 03:52:38 +0900 Subject: [PATCH] Add sbt-header plugin, update license --- .github/workflows/ci.yml | 2 +- LICENSE.txt | 2 +- README.md | 2 +- .../scala/sbtjooq/checker/CheckerLevel.scala | 16 ++++++++++++++++ .../scala/sbtjooq/checker/JooqCheckerKeys.scala | 16 ++++++++++++++++ .../sbtjooq/checker/JooqCheckerPlugin.scala | 16 ++++++++++++++++ .../sbtjooq/checker/internal/JooqWarts.scala | 16 ++++++++++++++++ .../sbtjooq/codegen/tool/GenerationTool.java | 16 ++++++++++++++++ .../scala/sbtjooq/codegen/CodegenConfig.scala | 16 ++++++++++++++++ .../main/scala/sbtjooq/codegen/CodegenMode.scala | 16 ++++++++++++++++ .../scala/sbtjooq/codegen/JooqCodegenKeys.scala | 16 ++++++++++++++++ .../sbtjooq/codegen/JooqCodegenPlugin.scala | 16 ++++++++++++++++ .../codegen/internal/ClasspathLoader.scala | 16 ++++++++++++++++ .../scala/sbtjooq/codegen/internal/Codegen.scala | 16 ++++++++++++++++ .../codegen/internal/ConfigTransformer.scala | 16 ++++++++++++++++ .../codegen/internal/GeneratorTarget.scala | 16 ++++++++++++++++ .../codegen/internal/VariableExpander.scala | 16 ++++++++++++++++ .../scala/sbtjooq/codegen/internal/package.scala | 16 ++++++++++++++++ .../sbtjooq/codegen/CodegenConfigTest.scala | 16 ++++++++++++++++ .../test/scala/sbtjooq/codegen/UnitSpec.scala | 16 ++++++++++++++++ .../AppendGeneratorTargetDirectoryTest.scala | 16 ++++++++++++++++ .../internal/GeneratorTargetPackageTest.scala | 16 ++++++++++++++++ .../internal/ReplaceConfigVariablesTest.scala | 16 ++++++++++++++++ core/src/main/scala/sbtjooq/JooqKeys.scala | 16 ++++++++++++++++ core/src/main/scala/sbtjooq/JooqPlugin.scala | 16 ++++++++++++++++ core/src/main/scala/sbtjooq/JooqVersion.scala | 16 ++++++++++++++++ docs/src/main/mdoc/README.md | 2 +- project/PublishSettings.scala | 6 ++++-- project/plugins.sbt | 1 + 29 files changed, 377 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bc8e1e1..cf76bf3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,7 +48,7 @@ jobs: run: | case ${{ matrix.jobtype }} in 1) - sbt -v test docs/mdoc scalafmtCheckAll scalafmtSbtCheck + sbt -v test docs/mdoc scalafmtCheckAll scalafmtSbtCheck headerCheckAll ;; 2) sbt -v "core/scripted jooq/*" "checker/scripted jooq-checker/*" diff --git a/LICENSE.txt b/LICENSE.txt index 62589ed..d70f9d8 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -187,7 +187,7 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright [yyyy] [name of copyright owner] + Copyright 2015 Tsukasa Kitachi Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/README.md b/README.md index 996adda..ff519b3 100644 --- a/README.md +++ b/README.md @@ -165,6 +165,6 @@ Plugin replace placeholders to substitution values: ## License -Copyright 2015-2018 Tsukasa Kitachi +Copyright 2015 Tsukasa Kitachi Apache License, Version 2.0 diff --git a/checker/src/main/scala/sbtjooq/checker/CheckerLevel.scala b/checker/src/main/scala/sbtjooq/checker/CheckerLevel.scala index 9f190b9..626e8be 100644 --- a/checker/src/main/scala/sbtjooq/checker/CheckerLevel.scala +++ b/checker/src/main/scala/sbtjooq/checker/CheckerLevel.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2015 Tsukasa Kitachi + * + * 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 sbtjooq.checker import sbtjooq.checker.internal.JooqWarts diff --git a/checker/src/main/scala/sbtjooq/checker/JooqCheckerKeys.scala b/checker/src/main/scala/sbtjooq/checker/JooqCheckerKeys.scala index f0313f4..694cc10 100644 --- a/checker/src/main/scala/sbtjooq/checker/JooqCheckerKeys.scala +++ b/checker/src/main/scala/sbtjooq/checker/JooqCheckerKeys.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2015 Tsukasa Kitachi + * + * 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 sbtjooq.checker import sbt._ diff --git a/checker/src/main/scala/sbtjooq/checker/JooqCheckerPlugin.scala b/checker/src/main/scala/sbtjooq/checker/JooqCheckerPlugin.scala index 522e33b..b00c9a1 100644 --- a/checker/src/main/scala/sbtjooq/checker/JooqCheckerPlugin.scala +++ b/checker/src/main/scala/sbtjooq/checker/JooqCheckerPlugin.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2015 Tsukasa Kitachi + * + * 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 sbtjooq.checker import sbt._ diff --git a/checker/src/main/scala/sbtjooq/checker/internal/JooqWarts.scala b/checker/src/main/scala/sbtjooq/checker/internal/JooqWarts.scala index caf5ad6..08bb095 100644 --- a/checker/src/main/scala/sbtjooq/checker/internal/JooqWarts.scala +++ b/checker/src/main/scala/sbtjooq/checker/internal/JooqWarts.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2015 Tsukasa Kitachi + * + * 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 sbtjooq.checker.internal import wartremover.Wart diff --git a/codegen-tool/src/main/java/sbtjooq/codegen/tool/GenerationTool.java b/codegen-tool/src/main/java/sbtjooq/codegen/tool/GenerationTool.java index 57b7096..f762317 100644 --- a/codegen-tool/src/main/java/sbtjooq/codegen/tool/GenerationTool.java +++ b/codegen-tool/src/main/java/sbtjooq/codegen/tool/GenerationTool.java @@ -1,3 +1,19 @@ +/* + * Copyright 2015 Tsukasa Kitachi + * + * 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 sbtjooq.codegen.tool; import org.slf4j.Logger; diff --git a/codegen/src/main/scala/sbtjooq/codegen/CodegenConfig.scala b/codegen/src/main/scala/sbtjooq/codegen/CodegenConfig.scala index 047d0f8..05cd188 100644 --- a/codegen/src/main/scala/sbtjooq/codegen/CodegenConfig.scala +++ b/codegen/src/main/scala/sbtjooq/codegen/CodegenConfig.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2015 Tsukasa Kitachi + * + * 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 sbtjooq.codegen import sbt._ diff --git a/codegen/src/main/scala/sbtjooq/codegen/CodegenMode.scala b/codegen/src/main/scala/sbtjooq/codegen/CodegenMode.scala index 6146502..c5ed181 100644 --- a/codegen/src/main/scala/sbtjooq/codegen/CodegenMode.scala +++ b/codegen/src/main/scala/sbtjooq/codegen/CodegenMode.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2015 Tsukasa Kitachi + * + * 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 sbtjooq.codegen sealed trait CodegenMode diff --git a/codegen/src/main/scala/sbtjooq/codegen/JooqCodegenKeys.scala b/codegen/src/main/scala/sbtjooq/codegen/JooqCodegenKeys.scala index 56f0d7e..9a2ffee 100644 --- a/codegen/src/main/scala/sbtjooq/codegen/JooqCodegenKeys.scala +++ b/codegen/src/main/scala/sbtjooq/codegen/JooqCodegenKeys.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2015 Tsukasa Kitachi + * + * 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 sbtjooq.codegen import sbt._ diff --git a/codegen/src/main/scala/sbtjooq/codegen/JooqCodegenPlugin.scala b/codegen/src/main/scala/sbtjooq/codegen/JooqCodegenPlugin.scala index bc63766..c2253ec 100644 --- a/codegen/src/main/scala/sbtjooq/codegen/JooqCodegenPlugin.scala +++ b/codegen/src/main/scala/sbtjooq/codegen/JooqCodegenPlugin.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2015 Tsukasa Kitachi + * + * 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 sbtjooq.codegen import sbt._ diff --git a/codegen/src/main/scala/sbtjooq/codegen/internal/ClasspathLoader.scala b/codegen/src/main/scala/sbtjooq/codegen/internal/ClasspathLoader.scala index 3c24a3f..94331dd 100644 --- a/codegen/src/main/scala/sbtjooq/codegen/internal/ClasspathLoader.scala +++ b/codegen/src/main/scala/sbtjooq/codegen/internal/ClasspathLoader.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2015 Tsukasa Kitachi + * + * 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 sbtjooq.codegen.internal import java.net.URLClassLoader diff --git a/codegen/src/main/scala/sbtjooq/codegen/internal/Codegen.scala b/codegen/src/main/scala/sbtjooq/codegen/internal/Codegen.scala index 5022e82..7207072 100644 --- a/codegen/src/main/scala/sbtjooq/codegen/internal/Codegen.scala +++ b/codegen/src/main/scala/sbtjooq/codegen/internal/Codegen.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2015 Tsukasa Kitachi + * + * 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 sbtjooq.codegen.internal import sbt._ diff --git a/codegen/src/main/scala/sbtjooq/codegen/internal/ConfigTransformer.scala b/codegen/src/main/scala/sbtjooq/codegen/internal/ConfigTransformer.scala index c67d31a..6af2a28 100644 --- a/codegen/src/main/scala/sbtjooq/codegen/internal/ConfigTransformer.scala +++ b/codegen/src/main/scala/sbtjooq/codegen/internal/ConfigTransformer.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2015 Tsukasa Kitachi + * + * 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 sbtjooq.codegen.internal import sbt._ diff --git a/codegen/src/main/scala/sbtjooq/codegen/internal/GeneratorTarget.scala b/codegen/src/main/scala/sbtjooq/codegen/internal/GeneratorTarget.scala index 01828fd..2f79df6 100644 --- a/codegen/src/main/scala/sbtjooq/codegen/internal/GeneratorTarget.scala +++ b/codegen/src/main/scala/sbtjooq/codegen/internal/GeneratorTarget.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2015 Tsukasa Kitachi + * + * 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 sbtjooq.codegen.internal import sbt._ diff --git a/codegen/src/main/scala/sbtjooq/codegen/internal/VariableExpander.scala b/codegen/src/main/scala/sbtjooq/codegen/internal/VariableExpander.scala index 856f83f..63fa298 100644 --- a/codegen/src/main/scala/sbtjooq/codegen/internal/VariableExpander.scala +++ b/codegen/src/main/scala/sbtjooq/codegen/internal/VariableExpander.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2015 Tsukasa Kitachi + * + * 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 sbtjooq.codegen.internal import java.util.Properties diff --git a/codegen/src/main/scala/sbtjooq/codegen/internal/package.scala b/codegen/src/main/scala/sbtjooq/codegen/internal/package.scala index a1c9b3d..6267efb 100644 --- a/codegen/src/main/scala/sbtjooq/codegen/internal/package.scala +++ b/codegen/src/main/scala/sbtjooq/codegen/internal/package.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2015 Tsukasa Kitachi + * + * 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 sbtjooq.codegen import java.io.FileNotFoundException diff --git a/codegen/src/test/scala/sbtjooq/codegen/CodegenConfigTest.scala b/codegen/src/test/scala/sbtjooq/codegen/CodegenConfigTest.scala index 09a8c4a..53b5d3b 100644 --- a/codegen/src/test/scala/sbtjooq/codegen/CodegenConfigTest.scala +++ b/codegen/src/test/scala/sbtjooq/codegen/CodegenConfigTest.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2015 Tsukasa Kitachi + * + * 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 sbtjooq.codegen import sbt._ diff --git a/codegen/src/test/scala/sbtjooq/codegen/UnitSpec.scala b/codegen/src/test/scala/sbtjooq/codegen/UnitSpec.scala index 97f80de..ac592c5 100644 --- a/codegen/src/test/scala/sbtjooq/codegen/UnitSpec.scala +++ b/codegen/src/test/scala/sbtjooq/codegen/UnitSpec.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2015 Tsukasa Kitachi + * + * 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 sbtjooq.codegen import org.scalactic.Prettifier diff --git a/codegen/src/test/scala/sbtjooq/codegen/internal/AppendGeneratorTargetDirectoryTest.scala b/codegen/src/test/scala/sbtjooq/codegen/internal/AppendGeneratorTargetDirectoryTest.scala index dce61eb..2dbdca3 100644 --- a/codegen/src/test/scala/sbtjooq/codegen/internal/AppendGeneratorTargetDirectoryTest.scala +++ b/codegen/src/test/scala/sbtjooq/codegen/internal/AppendGeneratorTargetDirectoryTest.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2015 Tsukasa Kitachi + * + * 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 sbtjooq.codegen.internal import sbtjooq.codegen.UnitSpec diff --git a/codegen/src/test/scala/sbtjooq/codegen/internal/GeneratorTargetPackageTest.scala b/codegen/src/test/scala/sbtjooq/codegen/internal/GeneratorTargetPackageTest.scala index 6fbec45..701079a 100644 --- a/codegen/src/test/scala/sbtjooq/codegen/internal/GeneratorTargetPackageTest.scala +++ b/codegen/src/test/scala/sbtjooq/codegen/internal/GeneratorTargetPackageTest.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2015 Tsukasa Kitachi + * + * 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 sbtjooq.codegen.internal import sbtjooq.codegen.UnitSpec diff --git a/codegen/src/test/scala/sbtjooq/codegen/internal/ReplaceConfigVariablesTest.scala b/codegen/src/test/scala/sbtjooq/codegen/internal/ReplaceConfigVariablesTest.scala index 302f567..878fdb1 100644 --- a/codegen/src/test/scala/sbtjooq/codegen/internal/ReplaceConfigVariablesTest.scala +++ b/codegen/src/test/scala/sbtjooq/codegen/internal/ReplaceConfigVariablesTest.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2015 Tsukasa Kitachi + * + * 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 sbtjooq.codegen.internal import java.util.Properties diff --git a/core/src/main/scala/sbtjooq/JooqKeys.scala b/core/src/main/scala/sbtjooq/JooqKeys.scala index 55943a9..16a7a8c 100644 --- a/core/src/main/scala/sbtjooq/JooqKeys.scala +++ b/core/src/main/scala/sbtjooq/JooqKeys.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2015 Tsukasa Kitachi + * + * 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 sbtjooq import sbt._ diff --git a/core/src/main/scala/sbtjooq/JooqPlugin.scala b/core/src/main/scala/sbtjooq/JooqPlugin.scala index af14793..dd25386 100644 --- a/core/src/main/scala/sbtjooq/JooqPlugin.scala +++ b/core/src/main/scala/sbtjooq/JooqPlugin.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2015 Tsukasa Kitachi + * + * 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 sbtjooq import sbt.Keys._ diff --git a/core/src/main/scala/sbtjooq/JooqVersion.scala b/core/src/main/scala/sbtjooq/JooqVersion.scala index de68b85..63921c5 100644 --- a/core/src/main/scala/sbtjooq/JooqVersion.scala +++ b/core/src/main/scala/sbtjooq/JooqVersion.scala @@ -1,3 +1,19 @@ +/* + * Copyright 2015 Tsukasa Kitachi + * + * 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 sbtjooq import sbt.librarymanagement.{DependencyBuilders, ModuleID, SemanticSelector, VersionNumber} diff --git a/docs/src/main/mdoc/README.md b/docs/src/main/mdoc/README.md index d54b442..b053112 100644 --- a/docs/src/main/mdoc/README.md +++ b/docs/src/main/mdoc/README.md @@ -271,6 +271,6 @@ ${pp.format(transform(xml)).replace('\\', '/')} --- ## License -Copyright 2015-2018 Tsukasa Kitachi +Copyright 2015 Tsukasa Kitachi Apache License, Version 2.0 diff --git a/project/PublishSettings.scala b/project/PublishSettings.scala index 41d86ce..080631f 100644 --- a/project/PublishSettings.scala +++ b/project/PublishSettings.scala @@ -17,10 +17,12 @@ object PublishSettings extends AutoPlugin { override def buildSettings: Seq[Setting[_]] = Seq( description := "jOOQ plugin for sbt 1.3+", organization := "com.github.kxbmap", - versionScheme := Some("early-semver"), + organizationName := "Tsukasa Kitachi", + startYear := Some(2015), licenses := Seq( - "Apache License, Version 2.0" -> url("https://www.apache.org/licenses/LICENSE-2.0.html") + "Apache-2.0" -> url("https://www.apache.org/licenses/LICENSE-2.0.html") ), + versionScheme := Some("early-semver"), ) override def projectSettings: Seq[Setting[_]] = Seq( diff --git a/project/plugins.sbt b/project/plugins.sbt index 77bcbde..2f67ed0 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -11,3 +11,4 @@ addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.1.2") addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.2.23") addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.10.0") addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.3") +addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.6.0")