Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 77befbc

Browse files
committed
fix: Fix Apache-2.0 License Header
1 parent 085e63c commit 77befbc

103 files changed

Lines changed: 460 additions & 86 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/maven-ci.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,26 @@
99
name: Java CI with Maven
1010
on:
1111
push:
12-
branches: [ "main" ]
1312
pull_request:
14-
branches: [ "main" ]
13+
1514
jobs:
15+
license:
16+
name: "Check License"
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: "Check License"
21+
uses: apache/skywalking-eyes@e1a02359b239bd28de3f6d35fdc870250fa513d5
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
- name: "Check Dependencies' License"
25+
uses: apache/skywalking-eyes/dependency@e1a02359b239bd28de3f6d35fdc870250fa513d5
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
with:
29+
config: .licenserc.yaml
30+
mode: check
31+
1632
build:
1733
runs-on: ubuntu-latest
1834
steps:
@@ -24,4 +40,4 @@ jobs:
2440
distribution: 'temurin'
2541
cache: maven
2642
- name: Build with Maven
27-
run: mvn -B package --file pom.xml
43+
run: mvn -B package

.licenserc.yaml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
header:
2+
license:
3+
spdx-id: Apache-2.0
4+
content: |
5+
Copyright 2024-2025 the original author or authors.
6+
7+
Licensed under the Apache License, Version 2.0 (the "License");
8+
You may not use this file except in compliance with the License.
9+
You may obtain a copy of the License at
10+
11+
http://www.apache.org/licenses/LICENSE-2.0
12+
13+
Unless required by applicable law or agreed to in writing, software
14+
distributed under the License is distributed on an "AS IS" BASIS,
15+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
See the License for the specific language governing permissions and
17+
limitations under the License.
18+
19+
paths-ignore:
20+
- '**/*.versionsBackup'
21+
- '**/.idea/'
22+
- '**/*.iml'
23+
- '**/.settings/*'
24+
- '**/.classpath'
25+
- '**/.project'
26+
- '**/target/**'
27+
- '**/generated/**'
28+
- '**/*.log'
29+
- '**/codestyle/*'
30+
- '**/resources/META-INF/**'
31+
- '**/resources/mockito-extensions/**'
32+
- '**/*.proto'
33+
- '**/*.cache'
34+
- '**/*.txt'
35+
- '**/*.load'
36+
- '**/*.flex'
37+
- '**/*.fc'
38+
- '**/*.javascript'
39+
- '**/*.properties'
40+
- '**/*.sh'
41+
- '**/*.bat'
42+
- '**/*.md'
43+
- '**/*.svg'
44+
- '**/*.png'
45+
- '**/*.json'
46+
- '**/*.conf'
47+
- '**/*.ftl'
48+
- '**/*.tpl'
49+
- '**/*.factories'
50+
- '**/*.handlers'
51+
- '**/*.schemas'
52+
- '**/*.nojekyll'
53+
- '.git/'
54+
- '.github/**'
55+
- '**/.gitignore'
56+
- '**/.helmignore'
57+
- '.repository/'
58+
- 'compiler/**'
59+
- '.gitmodules'
60+
- '.mvn'
61+
- 'mvnw'
62+
- 'mvnw.cmd'
63+
- 'LICENSE'
64+
- 'NOTICE'
65+
- 'CNAME'
66+
- 'Jenkinsfile'
67+
- '**/vendor/**'
68+
comment: on-failure
69+
70+
license-location-threshold: 130

examples/pom.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
~ Copyright 2024-2025 the original author or authors.
4+
~
5+
~ Licensed under the Apache License, Version 2.0 (the "License");
6+
~ You may not use this file except in compliance with the License.
7+
~ You may obtain a copy of the License at
8+
~
9+
~ http://www.apache.org/licenses/LICENSE-2.0
10+
~
11+
~ Unless required by applicable law or agreed to in writing, software
12+
~ distributed under the License is distributed on an "AS IS" BASIS,
13+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
~ See the License for the specific language governing permissions and
15+
~ limitations under the License.
16+
-->
17+
218
<project xmlns="http://maven.apache.org/POM/4.0.0"
319
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
420
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

examples/src/main/java/io/agentscope/examples/chat/ConversationExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Copyright 2024-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
5+
* You may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
88
* https://www.apache.org/licenses/LICENSE-2.0

examples/src/main/java/io/agentscope/examples/chat/ReActAgentExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Copyright 2024-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
5+
* You may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
88
* https://www.apache.org/licenses/LICENSE-2.0

examples/src/main/java/io/agentscope/examples/chat/ReActAgentStreamExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Copyright 2024-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
5+
* You may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
88
* https://www.apache.org/licenses/LICENSE-2.0

examples/src/main/java/io/agentscope/examples/session/PersistentSessionExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Copyright 2024-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
5+
* You may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
88
* https://www.apache.org/licenses/LICENSE-2.0

examples/src/main/java/io/agentscope/examples/tool/ReActAgentWithToolsExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Copyright 2024-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
5+
* You may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
88
* https://www.apache.org/licenses/LICENSE-2.0

examples/src/main/java/io/agentscope/examples/tool/ReActAgentWithToolsStreamExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Copyright 2024-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
5-
* you may not use this file except in compliance with the License.
5+
* You may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
88
* https://www.apache.org/licenses/LICENSE-2.0

examples/src/main/java/io/agentscope/examples/web/SpringWebExample.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2024-2025 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* You may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package io.agentscope.examples.web;
218

319
import io.agentscope.core.ReActAgent;

0 commit comments

Comments
 (0)