Rename our allwpilib (which is now 2020) to not have 2019 in the name
Change-Id: I3c07f85ed32ab8b97db765a9b43f2a6ce7da964a
diff --git a/ntcore/build.gradle b/ntcore/build.gradle
new file mode 100644
index 0000000..5739b71
--- /dev/null
+++ b/ntcore/build.gradle
@@ -0,0 +1,33 @@
+ext {
+ nativeName = 'ntcore'
+ devMain = 'edu.wpi.first.ntcore.DevMain'
+}
+
+apply from: "${rootDir}/shared/jni/setupBuild.gradle"
+
+nativeUtils.exportsConfigs {
+ ntcore {
+ x86ExcludeSymbols = ['_CT??_R0?AV_System_error', '_CT??_R0?AVexception', '_CT??_R0?AVfailure',
+ '_CT??_R0?AVruntime_error', '_CT??_R0?AVsystem_error', '_CTA5?AVfailure',
+ '_TI5?AVfailure', '_CT??_R0?AVout_of_range', '_CTA3?AVout_of_range',
+ '_TI3?AVout_of_range', '_CT??_R0?AVbad_cast']
+ x64ExcludeSymbols = ['_CT??_R0?AV_System_error', '_CT??_R0?AVexception', '_CT??_R0?AVfailure',
+ '_CT??_R0?AVruntime_error', '_CT??_R0?AVsystem_error', '_CTA5?AVfailure',
+ '_TI5?AVfailure', '_CT??_R0?AVout_of_range', '_CTA3?AVout_of_range',
+ '_TI3?AVout_of_range', '_CT??_R0?AVbad_cast']
+ }
+ ntcoreJNI {
+ x86SymbolFilter = { symbols ->
+ symbols.removeIf({ !it.startsWith('NT_') })
+ }
+ x64SymbolFilter = { symbols ->
+ symbols.removeIf({ !it.startsWith('NT_') })
+ }
+ }
+}
+
+if (!project.hasProperty('skipPMD')) {
+ pmdMain {
+ pmdMain.enabled = false
+ }
+}