diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000..04d9892 --- /dev/null +++ b/build.gradle @@ -0,0 +1,24 @@ +apply plugin: 'java' +apply from: 'dependencies.gradle' + +allprojects { + repositories { + mavenCentral() + } + + plugins.withType(JavaPlugin) { + dependencies { + implementation global_libs.annotations + testImplementation global_libs.junit + } + } +} + +tasks.named('wrapper') { + distributionType = Wrapper.DistributionType.ALL +} + +// gradlew allDeps +subprojects { + task allDeps(type: DependencyReportTask) {} +} \ No newline at end of file diff --git a/dependencies.gradle b/dependencies.gradle new file mode 100644 index 0000000..447833b --- /dev/null +++ b/dependencies.gradle @@ -0,0 +1,9 @@ +ext { + global_libs = [ + junit : "junit:junit:4.13.2", + annotations : "org.jetbrains:annotations:16.0.1", + jsr305 : "com.google.code.findbugs:jsr305:3.0.2", + mockito : "org.mockito:mockito-all:1.10.19", + jcip : 'net.jcip:jcip-annotations:1.0', + ] +} \ No newline at end of file diff --git a/src/test/java/com/rusefi/uds/SecurityTest.java b/src/test/java/com/rusefi/uds/SecurityTest.java new file mode 100644 index 0000000..2cc7c0a --- /dev/null +++ b/src/test/java/com/rusefi/uds/SecurityTest.java @@ -0,0 +1,10 @@ +package com.rusefi.uds; + +import org.junit.Test; + +public class SecurityTest { + @Test + public void testCalcKey() { + + } +}