Skip to content

Commit efd78b5

Browse files
committed
#46 prepared for multiple allowed modes to keep comments and refactoring
1 parent 0676943 commit efd78b5

38 files changed

Lines changed: 515 additions & 101 deletions

jcp-tests/jcp-test-gradle-5/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ buildscript {
33
flatDir dirs: "../../jcp/target"
44
}
55
dependencies {
6-
classpath "com.igormaznitsa:jcp:7.0.6-SNAPSHOT"
6+
classpath "com.igormaznitsa:jcp:$jcp_test_version"
77
}
88
}
99

jcp-tests/jcp-test-gradle-5/pom.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,8 @@
7070
<argument>--rerun-tasks</argument>
7171
<argument>--scan</argument>
7272
<argument>--full-stacktrace</argument>
73-
<argument>
74-
-Pjcp_plugin_path=${project.basedir}${file.separator}..${file.separator}..${file.separator}jcp-gradle-plugin${file.separator}build${file.separator}libs${file.separator}jcp-gradle-plugin-${jcp.test.version}.jar
75-
</argument>
73+
<argument>-Pjcp_test_version=${jcp.test.version}</argument>
74+
<argument>-Pjcp_plugin_path=${project.basedir}${file.separator}..${file.separator}..${file.separator}jcp-gradle-plugin${file.separator}build${file.separator}libs${file.separator}jcp-gradle-plugin-${jcp.test.version}.jar</argument>
7675
</arguments>
7776
</configuration>
7877
<goals>

jcp-tests/jcp-test-gradle-6/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ buildscript {
33
flatDir dirs: "../../jcp/target"
44
}
55
dependencies {
6-
classpath "com.igormaznitsa:jcp:7.0.6-SNAPSHOT"
6+
classpath "com.igormaznitsa:jcp:$jcp_test_version"
77
}
88
}
99

@@ -49,7 +49,7 @@ preprocess {
4949
verbose = true
5050
clearTarget = true
5151
careForLastEol = true
52-
keepComments = true
52+
keepComments = 'keep_all'
5353
excludeFolders = ['**/some1', '**/some2']
5454
configFiles = ['./configFile.txt']
5555
keepLines = true

jcp-tests/jcp-test-gradle-6/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
<argument>--rerun-tasks</argument>
7171
<argument>--scan</argument>
7272
<argument>--full-stacktrace</argument>
73+
<argument>-Pjcp_test_version=${jcp.test.version}</argument>
7374
<argument>
7475
-Pjcp_plugin_path=${project.basedir}${file.separator}..${file.separator}..${file.separator}jcp-gradle-plugin${file.separator}build${file.separator}libs${file.separator}jcp-gradle-plugin-${jcp.test.version}.jar
7576
</argument>

jcp-tests/jcp-test-gradle-7/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ buildscript {
33
flatDir dirs: "../../jcp/target"
44
}
55
dependencies {
6-
classpath "com.igormaznitsa:jcp:7.0.6-SNAPSHOT"
6+
classpath "com.igormaznitsa:jcp:$jcp_test_version"
77
}
88
}
99

@@ -49,7 +49,7 @@ preprocess {
4949
verbose = true
5050
clearTarget = true
5151
careForLastEol = true
52-
keepComments = true
52+
keepComments = 'remove_all'
5353
excludeFolders = ['**/some1', '**/some2']
5454
configFiles = ['./configFile.txt']
5555
keepLines = true

jcp-tests/jcp-test-gradle-7/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
<argument>--rerun-tasks</argument>
7171
<argument>--scan</argument>
7272
<argument>--full-stacktrace</argument>
73+
<argument>-Pjcp_test_version=${jcp.test.version}</argument>
7374
<argument>
7475
-Pjcp_plugin_path=${project.basedir}${file.separator}..${file.separator}..${file.separator}jcp-gradle-plugin${file.separator}build${file.separator}libs${file.separator}jcp-gradle-plugin-${jcp.test.version}.jar
7576
</argument>

jcp-tests/jcp-test-gradle-8/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ buildscript {
33
flatDir dirs: "../../jcp/target"
44
}
55
dependencies {
6-
classpath "com.igormaznitsa:jcp:7.0.6-SNAPSHOT"
6+
classpath "com.igormaznitsa:jcp:$jcp_test_version"
77
}
88
}
99

@@ -49,7 +49,7 @@ preprocess {
4949
verbose = true
5050
clearTarget = true
5151
careForLastEol = true
52-
keepComments = true
52+
keepComments = 'remove_jcp'
5353
excludeFolders = ['**/some1', '**/some2']
5454
configFiles = ['./configFile.txt']
5555
keepLines = true

jcp-tests/jcp-test-gradle-8/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
<argument>--rerun-tasks</argument>
7171
<argument>--scan</argument>
7272
<argument>--full-stacktrace</argument>
73+
<argument>-Pjcp_test_version=${jcp.test.version}</argument>
7374
<argument>
7475
-Pjcp_plugin_path=${project.basedir}${file.separator}..${file.separator}..${file.separator}jcp-gradle-plugin${file.separator}build${file.separator}libs${file.separator}jcp-gradle-plugin-${jcp.test.version}.jar
7576
</argument>

jcp-tests/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<properties>
1111
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
12-
<jcp.test.version>7.0.6-SNAPSHOT</jcp.test.version>
12+
<jcp.test.version>7.1.0-SNAPSHOT</jcp.test.version>
1313
<junit.version>5.4.2</junit.version>
1414
<maven.compiler.source>1.8</maven.compiler.source>
1515
<maven.compiler.target>1.8</maven.compiler.target>

jcp/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.igormaznitsa</groupId>
77
<artifactId>jcp-pom</artifactId>
8-
<version>7.0.6-SNAPSHOT</version>
8+
<version>7.1.0-SNAPSHOT</version>
99
</parent>
1010

1111
<artifactId>jcp</artifactId>

0 commit comments

Comments
 (0)