-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
issues/27: Prevent duplicate coverage builds if class files are dupli…
…cated across SourceSets
- Loading branch information
Showing
18 changed files
with
470 additions
and
418 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
org.gradle.logging.level=info | ||
org.gradle.logging.level=lifecycle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
127 changes: 0 additions & 127 deletions
127
skippy-gradle/src/main/java/io/skippy/gradle/DecoratedClass.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
skippy-gradle/src/main/java/io/skippy/gradle/SkippyPluginExtension.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/* | ||
* Copyright 2023 the original author or 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 io.skippy.gradle; | ||
|
||
import io.skippy.gradle.model.SourceSetWithTestTask; | ||
import org.gradle.api.Action; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
import static org.codehaus.groovy.runtime.InvokerHelper.asList; | ||
|
||
/** | ||
* Extension that allows for customization of {@link AnalyzeTask}. | ||
* | ||
* @author Florian McKee | ||
*/ | ||
public class SkippyPluginExtension { | ||
|
||
private List<SourceSetWithTestTask> sourceSetsWithTestTask = new ArrayList<>(); | ||
|
||
public List<SourceSetWithTestTask> getSourceSetsWithTestTasks() { | ||
if (sourceSetsWithTestTask.isEmpty()) { | ||
return asList(new SourceSetWithTestTask("test", "test")); | ||
} | ||
return sourceSetsWithTestTask; | ||
} | ||
|
||
public void sourceSet(Action<SourceSetWithTestTask> action) { | ||
var sourceSetAndTestTask = new SourceSetWithTestTask(null, null); | ||
sourceSetsWithTestTask.add(sourceSetAndTestTask); | ||
action.execute(sourceSetAndTestTask); | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.