-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
package org.frc5572.util.serde; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
/** File supports serialization to and from a log table. */ | ||
@Retention(RetentionPolicy.SOURCE) | ||
@Target({ElementType.TYPE}) | ||
public @interface Serde {} | ||
package org.frc5572.util.mixin; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
@Target({ElementType.TYPE}) | ||
Check warning on line 8 in lib/src/main/java/org/frc5572/util/mixin/Final.java GitHub Actions / Linting
|
||
@Retention(RetentionPolicy.CLASS) | ||
public @interface Final { | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package org.frc5572.util.mixin; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
@Target({ElementType.TYPE}) | ||
Check warning on line 8 in lib/src/main/java/org/frc5572/util/mixin/Mixin.java GitHub Actions / Linting
|
||
@Retention(RetentionPolicy.CLASS) | ||
public @interface Mixin { | ||
|
||
Class<?>[] value() default { }; | ||
Check warning on line 12 in lib/src/main/java/org/frc5572/util/mixin/Mixin.java GitHub Actions / Linting
|
||
|
||
String[] targets() default { }; | ||
Check warning on line 14 in lib/src/main/java/org/frc5572/util/mixin/Mixin.java GitHub Actions / Linting
|
||
|
||
int priority() default 1000; | ||
Check warning on line 16 in lib/src/main/java/org/frc5572/util/mixin/Mixin.java GitHub Actions / Linting
|
||
|
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
package org.frc5572.util.serde; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
@Retention(RetentionPolicy.SOURCE) | ||
@Target({ElementType.FIELD}) | ||
public @interface Aliases { | ||
Alias[] value(); | ||
} | ||
package org.frc5572.util.mixin; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
@Target({ElementType.TYPE}) | ||
Check warning on line 8 in lib/src/main/java/org/frc5572/util/mixin/Overwrite.java GitHub Actions / Linting
|
||
@Retention(RetentionPolicy.CLASS) | ||
public @interface Overwrite { | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package org.frc5572.util.mixin; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
@Target({ElementType.TYPE}) | ||
Check warning on line 8 in lib/src/main/java/org/frc5572/util/mixin/Shadow.java GitHub Actions / Linting
|
||
@Retention(RetentionPolicy.CLASS) | ||
public @interface Shadow { | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package org.frc5572.util.mixin.inject; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
@Target({ElementType.TYPE}) | ||
Check warning on line 8 in lib/src/main/java/org/frc5572/util/mixin/inject/At.java GitHub Actions / Linting
|
||
@Retention(RetentionPolicy.CLASS) | ||
public @interface At { | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package org.frc5572.util.mixin.inject; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
@Target({ElementType.TYPE}) | ||
Check warning on line 8 in lib/src/main/java/org/frc5572/util/mixin/inject/Inject.java GitHub Actions / Linting
|
||
@Retention(RetentionPolicy.CLASS) | ||
public @interface Inject { | ||
} |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
plugins { | ||
id 'java-gradle-plugin' | ||
id 'maven-publish' | ||
id 'org.jetbrains.kotlin.jvm' version '1.9.10' | ||
} | ||
|
||
group = "com.github.Frc5572" | ||
var githubProjectName = "RobotTools" | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
gradlePlugin { | ||
plugins { | ||
register("ffstMixin") { | ||
id = "$group.$githubProjectName" | ||
implementationClass = 'org.frc5572.mixin.MixinPlugin' | ||
} | ||
} | ||
} | ||
|
||
kotlin { | ||
jvmToolchain(17) | ||
} | ||
|
||
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile.class).configureEach { | ||
jvmTargetValidationMode = org.jetbrains.kotlin.gradle.dsl.jvm.JvmTargetValidationMode.WARNING | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package org.frc5572.mixin; | ||
|
||
import org.gradle.api.Project | ||
import org.gradle.api.Plugin | ||
import org.gradle.api.Task | ||
import org.gradle.api.tasks.JavaExec | ||
import org.gradle.jvm.tasks.Jar | ||
|
||
class MixinPlugin: Plugin<Project> { | ||
override fun apply(target: Project) { | ||
target.tasks.withType(Jar::class.java) { task -> | ||
task.doLast { | ||
task.outputs.files.forEach { | ||
println(it.path) | ||
} | ||
} | ||
} | ||
} | ||
} |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,6 @@ plugins { | |
} | ||
|
||
rootProject.name = 'robot-tools' | ||
include('plugin') | ||
include('processor') | ||
include('lib') |