-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
145 additions
and
14 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
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,5 @@ | ||
package dev.heowc.heo.cli; | ||
|
||
public record HeoConfig(boolean failureOnCycles) { | ||
|
||
} |
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,8 @@ | ||
package dev.heowc.heo.core; | ||
|
||
public class HeoException extends RuntimeException { | ||
|
||
public HeoException(String message) { | ||
super(message); | ||
} | ||
} |
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
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
buildscript { | ||
repositories { | ||
mavenLocal() | ||
} | ||
dependencies { | ||
if (project.hasProperty('localPlugin')) { | ||
classpath "dev.heowc.heo:heo-gradle-plugin:${version}" | ||
} | ||
} | ||
} | ||
|
||
if (project.hasProperty('localPlugin')) { | ||
apply plugin: 'dev.heowc.heo' | ||
apply plugin: 'java' | ||
|
||
heo { | ||
directoryPath = "${rootDir}/it/cycled-gradle-plugin" | ||
prefixPackage = "dev.heowc.heo.it.cycled" | ||
failureOnCycles = true | ||
} | ||
|
||
test { | ||
dependsOn 'pluginTest' | ||
} | ||
|
||
tasks.register('pluginTest') { | ||
doLast { | ||
var failure = false | ||
try { | ||
tasks.heoReport.exec() | ||
} catch (Exception e) { | ||
failure = true | ||
} | ||
if (!failure) { | ||
throw new IllegalStateException("The task did not fail") | ||
} | ||
} | ||
} | ||
|
||
} |
7 changes: 7 additions & 0 deletions
7
it/cycled-gradle-plugin/src/main/java/dev/heowc/heo/it/cycled/CycledMain.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,7 @@ | ||
package dev.heowc.heo.it.cycled; | ||
|
||
public class CycledMain { | ||
|
||
public static void main(String[] args) { | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
it/cycled-gradle-plugin/src/main/java/dev/heowc/heo/it/cycled/a/A.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,8 @@ | ||
package dev.heowc.heo.it.cycled.a; | ||
|
||
import dev.heowc.heo.it.cycled.b.B; | ||
|
||
public class A { | ||
|
||
private B b; | ||
} |
8 changes: 8 additions & 0 deletions
8
it/cycled-gradle-plugin/src/main/java/dev/heowc/heo/it/cycled/b/B.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,8 @@ | ||
package dev.heowc.heo.it.cycled.b; | ||
|
||
import dev.heowc.heo.it.cycled.c.C; | ||
|
||
public class B { | ||
|
||
private C c; | ||
} |
8 changes: 8 additions & 0 deletions
8
it/cycled-gradle-plugin/src/main/java/dev/heowc/heo/it/cycled/c/C.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,8 @@ | ||
package dev.heowc.heo.it.cycled.c; | ||
|
||
import dev.heowc.heo.it.cycled.a.A; | ||
|
||
public class C { | ||
|
||
private A a; | ||
} |
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 |
---|---|---|
|
@@ -11,4 +11,4 @@ include 'heo-cli' | |
include 'heo-gradle-plugin' | ||
|
||
include 'it:gradle-plugin' | ||
|
||
include 'it:cycled-gradle-plugin' |