Skip to content

Commit

Permalink
Add license headers to all source code files (#1261)
Browse files Browse the repository at this point in the history
  • Loading branch information
nakamura-to authored Jan 3, 2025
2 parents 1e9b367 + 63731cb commit c743eef
Show file tree
Hide file tree
Showing 2,095 changed files with 31,372 additions and 25 deletions.
12 changes: 12 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,24 @@ allprojects {
}

spotless {
val targetExclude = "src/test/java/org/seasar/aptina/unit/*.java"
val licenseHeaderFile = rootProject.file("spotless/copyright.java")

lineEndings = com.diffplug.spotless.LineEnding.UNIX
java {
targetExclude(targetExclude)
googleJavaFormat(catalog.google.java.format.get().version)
licenseHeaderFile(licenseHeaderFile)
}
// https://github.com/diffplug/spotless/issues/532
format("javaMisc") {
targetExclude(targetExclude)
target("src/**/package-info.java", "src/**/module-info.java")
licenseHeaderFile(licenseHeaderFile, "(package|module|\\/\\*\\*)")
}
kotlin {
ktlint(catalog.ktlint.get().version)
licenseHeaderFile(licenseHeaderFile)
}
kotlinGradle {
ktlint(catalog.ktlint.get().version)
Expand Down
15 changes: 15 additions & 0 deletions doma-core/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* Copyright Doma Authors
*
* 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
*
* https://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.
*/
module org.seasar.doma.core {
// Exports
exports org.seasar.doma;
Expand Down
15 changes: 15 additions & 0 deletions doma-core/src/main/java/org/seasar/doma/AccessLevel.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* Copyright Doma Authors
*
* 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
*
* https://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 org.seasar.doma;

/** Defines access levels in The Java Language. */
Expand Down
15 changes: 15 additions & 0 deletions doma-core/src/main/java/org/seasar/doma/AnnotateWith.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* Copyright Doma Authors
*
* 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
*
* https://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 org.seasar.doma;

import java.lang.annotation.ElementType;
Expand Down
15 changes: 15 additions & 0 deletions doma-core/src/main/java/org/seasar/doma/Annotation.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* Copyright Doma Authors
*
* 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
*
* https://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 org.seasar.doma;

import java.lang.annotation.Retention;
Expand Down
15 changes: 15 additions & 0 deletions doma-core/src/main/java/org/seasar/doma/AnnotationTarget.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* Copyright Doma Authors
*
* 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
*
* https://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 org.seasar.doma;

/**
Expand Down
15 changes: 15 additions & 0 deletions doma-core/src/main/java/org/seasar/doma/ArrayFactory.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* Copyright Doma Authors
*
* 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
*
* https://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 org.seasar.doma;

import java.lang.annotation.ElementType;
Expand Down
15 changes: 15 additions & 0 deletions doma-core/src/main/java/org/seasar/doma/BatchDelete.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* Copyright Doma Authors
*
* 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
*
* https://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 org.seasar.doma;

import java.lang.annotation.ElementType;
Expand Down
15 changes: 15 additions & 0 deletions doma-core/src/main/java/org/seasar/doma/BatchInsert.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* Copyright Doma Authors
*
* 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
*
* https://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 org.seasar.doma;

import java.lang.annotation.ElementType;
Expand Down
15 changes: 15 additions & 0 deletions doma-core/src/main/java/org/seasar/doma/BatchUpdate.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* Copyright Doma Authors
*
* 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
*
* https://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 org.seasar.doma;

import java.lang.annotation.ElementType;
Expand Down
15 changes: 15 additions & 0 deletions doma-core/src/main/java/org/seasar/doma/BlobFactory.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* Copyright Doma Authors
*
* 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
*
* https://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 org.seasar.doma;

import java.lang.annotation.ElementType;
Expand Down
15 changes: 15 additions & 0 deletions doma-core/src/main/java/org/seasar/doma/ClobFactory.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* Copyright Doma Authors
*
* 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
*
* https://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 org.seasar.doma;

import java.lang.annotation.ElementType;
Expand Down
15 changes: 15 additions & 0 deletions doma-core/src/main/java/org/seasar/doma/Column.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* Copyright Doma Authors
*
* 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
*
* https://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 org.seasar.doma;

import java.lang.annotation.ElementType;
Expand Down
15 changes: 15 additions & 0 deletions doma-core/src/main/java/org/seasar/doma/Dao.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* Copyright Doma Authors
*
* 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
*
* https://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 org.seasar.doma;

import java.lang.annotation.ElementType;
Expand Down
15 changes: 15 additions & 0 deletions doma-core/src/main/java/org/seasar/doma/DaoImplementation.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* Copyright Doma Authors
*
* 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
*
* https://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 org.seasar.doma;

import java.lang.annotation.ElementType;
Expand Down
15 changes: 15 additions & 0 deletions doma-core/src/main/java/org/seasar/doma/DaoMethod.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* Copyright Doma Authors
*
* 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
*
* https://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 org.seasar.doma;

import java.lang.annotation.ElementType;
Expand Down
15 changes: 15 additions & 0 deletions doma-core/src/main/java/org/seasar/doma/DataType.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* Copyright Doma Authors
*
* 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
*
* https://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 org.seasar.doma;

import java.lang.annotation.ElementType;
Expand Down
15 changes: 15 additions & 0 deletions doma-core/src/main/java/org/seasar/doma/Delete.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* Copyright Doma Authors
*
* 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
*
* https://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 org.seasar.doma;

import java.lang.annotation.ElementType;
Expand Down
15 changes: 15 additions & 0 deletions doma-core/src/main/java/org/seasar/doma/DomaException.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* Copyright Doma Authors
*
* 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
*
* https://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 org.seasar.doma;

import org.seasar.doma.message.MessageResource;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
/*
* Copyright Doma Authors
*
* 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
*
* https://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 org.seasar.doma;

import org.seasar.doma.message.Message;
Expand Down
Loading

0 comments on commit c743eef

Please sign in to comment.