Skip to content

Commit 546703e

Browse files
committed
Add license
1 parent 5c325a5 commit 546703e

File tree

3 files changed

+124
-2
lines changed

3 files changed

+124
-2
lines changed

rascal-textmate-core/LICENSE

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
BSD 2-Clause License
2+
3+
Copyright (c) 2024, Swat.engineering
4+
5+
Redistribution and use in source and binary forms, with or without
6+
modification, are permitted provided that the following conditions are met:
7+
8+
1. Redistributions of source code must retain the above copyright notice, this
9+
list of conditions and the following disclaimer.
10+
11+
2. Redistributions in binary form must reproduce the above copyright notice,
12+
this list of conditions and the following disclaimer in the documentation
13+
and/or other materials provided with the distribution.
14+
15+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
16+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
17+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
19+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
21+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
22+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
23+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
24+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

rascal-textmate-core/pom.xml

Lines changed: 76 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,46 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
4+
BSD 2-Clause License
5+
6+
Copyright (c) 2023, Swat.engineering
7+
8+
Redistribution and use in source and binary forms, with or without
9+
modification, are permitted provided that the following conditions are met:
10+
11+
1. Redistributions of source code must retain the above copyright notice, this
12+
list of conditions and the following disclaimer.
13+
14+
2. Redistributions in binary form must reproduce the above copyright notice,
15+
this list of conditions and the following disclaimer in the documentation
16+
and/or other materials provided with the distribution.
17+
18+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
22+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
24+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
25+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
26+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28+
29+
-->
230
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
331
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
432
<modelVersion>4.0.0</modelVersion>
533

634
<groupId>org.rascalmpl</groupId>
735
<artifactId>rascal-textmate-core</artifactId>
836
<version>0.1.0-SNAPSHOT</version>
37+
<licenses>
38+
<license>
39+
<name>BSD-2-Clause</name>
40+
<url>https://opensource.org/license/BSD-2-Clause</url>
41+
<distribution>repo</distribution>
42+
</license>
43+
</licenses>
944

1045
<properties>
1146
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -48,7 +83,7 @@
4883
<artifactId>maven-compiler-plugin</artifactId>
4984
<version>3.13.0</version>
5085
<configuration>
51-
<compilerArgument>-parameters</compilerArgument>
86+
<compilerArgument>-parameters</compilerArgument>
5287
<release>11</release>
5388
</configuration>
5489
</plugin>
@@ -98,7 +133,46 @@
98133
<artifactId>maven-surefire-plugin</artifactId>
99134
<version>3.3.0</version>
100135
</plugin>
136+
<plugin>
137+
<groupId>com.mycila</groupId>
138+
<artifactId>license-maven-plugin</artifactId>
139+
<!-- mvn license:format adds/updates all license headers -->
140+
<version>4.6</version>
141+
<configuration>
142+
<headerDefinitions>
143+
<headerDefinition>rascal_style.xml</headerDefinition>
144+
</headerDefinitions>
145+
<licenseSets>
146+
<licenseSet>
147+
<header>LICENSE</header>
148+
<excludes>
149+
<exclude>META-INF/**</exclude>
150+
<exclude>node_modules/**</exclude>
151+
<exclude>target/**</exclude>
152+
<exclude>.editorconfig</exclude>
153+
<exclude>.gitignore</exclude>
154+
<exclude>package.json</exclude>
155+
<exclude>package-lock.json</exclude>
156+
<exclude>pom.xml</exclude>
157+
<exclude>rascal_style.xml</exclude>
158+
<exclude>test.sh</exclude>
159+
</excludes>
160+
</licenseSet>
161+
</licenseSets>
162+
<mapping>
163+
<java>SLASHSTAR_STYLE</java>
164+
<rsc>RASCAL_STYLE</rsc>
165+
<test>TMGRAMMAR_TEST_STYLE</test>
166+
</mapping>
167+
</configuration>
168+
<executions>
169+
<execution>
170+
<goals>
171+
<goal>check</goal>
172+
</goals>
173+
</execution>
174+
</executions>
175+
</plugin>
101176
</plugins>
102177
</build>
103178
</project>
104-
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" encoding="ISO-8859-1"?>
2+
<additionalHeaders>
3+
<rascal_style>
4+
<firstLine>@license{</firstLine>
5+
<endLine>}</endLine>
6+
<firstLineDetectionPattern>@license\{.*$</firstLineDetectionPattern>
7+
<lastLineDetectionPattern>\}$</lastLineDetectionPattern>
8+
<allowBlankLines>true</allowBlankLines>
9+
<isMultiLine>true</isMultiLine>
10+
</rascal_style>
11+
<tmgrammar_test_style>
12+
<firstLine># ------------------------------------------------------------------------------</firstLine>
13+
<beforeEachLine># </beforeEachLine>
14+
<endLine># ------------------------------------------------------------------------------</endLine>
15+
<!-- <afterEachLine></afterEachLine> -->
16+
<skipLine># SYNTAX TEST .*$</skipLine>
17+
<firstLineDetectionPattern># ------------------------------------------------------------------------------$</firstLineDetectionPattern>
18+
<lastLineDetectionPattern># ------------------------------------------------------------------------------$</lastLineDetectionPattern>
19+
<allowBlankLines>true</allowBlankLines>
20+
<isMultiLine>true</isMultiLine>
21+
<!-- <multiLine>true</multiLine> -->
22+
<!-- <padLines>false</padLines> -->
23+
</tmgrammar_test_style>
24+
</additionalHeaders>

0 commit comments

Comments
 (0)