-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[build] Gradle Cleanup #1021
[build] Gradle Cleanup #1021
Conversation
def versionFileIn = file("${rootDir}/shared/PhotonVersion.java.in") | ||
writePhotonVersionFile(versionFileIn, Path.of("$projectDir", "src", "main", "java", "org", "photonvision", "PhotonVersion.java"), | ||
versionString) | ||
} | ||
|
||
build.dependsOn writeCurrentVersionJava | ||
build.dependsOn writeCurrentVersion |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's wrong with the old name?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just matched photon-lib now
@@ -5,6 +5,26 @@ apply plugin: 'edu.wpi.first.NativeUtils' | |||
apply from: "${rootDir}/shared/config.gradle" | |||
apply from: "${rootDir}/shared/javacommon.gradle" | |||
|
|||
wpilibTools.deps.wpilibVersion = wpi.versions.wpilibVersion.get() | |||
|
|||
def nativeConfigName = 'wpilibNatives' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's ok if multiple projects share this name right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It builds lol
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And it runs in test mode and the shadow jar and robot sim and everything? This could cause unsatisfied link errors if you aren't careful
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test mode worked, I didn't run the simulation. Also if you look at main, they are both named the exact same thing so I'm fairly sure this doesn't matter.
d266104
to
4563d61
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on a C++ sim project and on a fat JAR
Cleanup project-wide gradle configuration.