Skip to content

Commit 7d0ecfa

Browse files
committed
chore: transport formatting files over from spotless
1 parent 3b26183 commit 7d0ecfa

File tree

9 files changed

+68
-1
lines changed

9 files changed

+68
-1
lines changed

.idea/modules/testlib/spotless-cli.testlib.main.iml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build-logic/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ repositories {
1818

1919
dependencies {
2020
implementation 'com.gradleup.shadow:shadow-gradle-plugin:8.3.6'
21+
implementation 'org.graalvm.buildtools:native-gradle-plugin:0.10.5'
2122
}
2223

2324
spotless {

build-logic/src/main/groovy/buildlogic.java-graalvm-conventions.gradle

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ plugins {
44
id 'buildlogic.jar-shadow-conventions'
55
}
66

7+
tasks.withType(org.graalvm.buildtools.gradle.tasks.GenerateResourcesConfigFile).configureEach {
8+
notCompatibleWithConfigurationCache('https://github.com/britter/maven-plugin-development/issues/8')
9+
}
10+
tasks.withType(org.graalvm.buildtools.gradle.tasks.BuildNativeImageTask).configureEach {
11+
notCompatibleWithConfigurationCache('https://github.com/britter/maven-plugin-development/issues/8')
12+
}
713

814
def nativeCompileMetaDir = project.layout.buildDirectory.dir('nativeCompile/src/main/resources/native-image/' + project.group + '/' + project.name)
915

@@ -70,3 +76,5 @@ tasks.named('shadowJar', com.github.jengelman.gradle.plugins.shadow.tasks.Shadow
7076
into('META-INF/native-image/' + project.group + '/' + project.name)
7177
}
7278
}
79+
80+
project.ext.nativeCompileMetaDir = nativeCompileMetaDir

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ plugins {
2727
id 'com.adarshr.test-logger' version '4.0.0' apply false
2828

2929
// https://github.com/graalvm/native-build-tools/releases
30-
id 'org.graalvm.buildtools.native' version '0.10.2' apply false
30+
id 'org.graalvm.buildtools.native' version '0.10.5' apply false
3131

3232
// https://github.com/GradleUp/shadow/releases
3333
id 'com.gradleup.shadow' version '8.3.6' apply false
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import mylib.UsedA;
2+
import mylib.UsedB;
3+
4+
public class Java {
5+
/** Some javadoc. */
6+
public static void main(String[] args) {
7+
System.out.println(
8+
"A very very very very very very very very very very very very very very very very very very very very very long string that goes beyond the 100-character line length.");
9+
UsedB.someMethod();
10+
UsedA.someMethod();
11+
}
12+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
import mylib.Unused;
3+
import mylib.UsedB;
4+
import mylib.UsedA;
5+
6+
public class Java {
7+
/**
8+
* Some javadoc.
9+
*/
10+
public static void main(String[] args) {
11+
System.out.println("A very very very very very very very very very very very very very very very very very very very very very long string that goes beyond the 100-character line length.");
12+
UsedB.someMethod();
13+
UsedA.someMethod();
14+
}
15+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
parser: typescript
2+
printWidth: 20
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
export class MyVeryOwnControllerWithARatherLongNameThatIsNotReallyNecessary
2+
extends AbstractController
3+
implements
4+
DisposeAware,
5+
CallbackAware
6+
{
7+
public myValue: string[];
8+
9+
constructor(
10+
private myService: Service,
11+
name: string,
12+
private field: any
13+
) {
14+
super(name);
15+
}
16+
17+
//...
18+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
export class MyVeryOwnControllerWithARatherLongNameThatIsNotReallyNecessary extends AbstractController implements DisposeAware, CallbackAware {
2+
3+
4+
public myValue:string[];
5+
6+
constructor(private myService:Service,name:string,private field:any){ super(name) ;}
7+
8+
9+
//...
10+
}

0 commit comments

Comments
 (0)