Feature 3014-1 Migrating gcc_map_reader to gradle (#3124)

* feat: completed build.gradle for gcc_map_reader

* feat: gcc_map_reader linked with android; deleted build.xml

* feat: added comment to clarify the purpose of redefining default paths

* fix: deleted .gitignore from gcc_map_reader

* fix: replaced 'compile' with 'compileClasspath' in dependencies of gcc_map_reader 'cause it deprecated in 6.1.1 gradle

* fix: bolder approach to migration to gradle

* fix: use junit from maven not local

* fix: deleted local junit library
This commit is contained in:
Lenar Khannanov 2021-08-09 21:21:52 +03:00 committed by GitHub
parent af15a1bbe6
commit 636417140a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 29 additions and 28 deletions

View File

@ -11,3 +11,5 @@ include ':models'
project(':models').projectDir = new File('../java_console/models')
include ':autoupdate'
project(':autoupdate').projectDir = new File('../java_console/autoupdate')
include ':gcc_map_reader'
project(':gcc_map_reader').projectDir = new File('../java_tools/gcc_map_reader')

View File

@ -0,0 +1,27 @@
plugins {
id 'java'
id 'application'
}
repositories {
mavenCentral()
}
defaultTasks 'jar'
dependencies {
implementation 'junit:junit:4.8.2'
}
jar {
destinationDirectory = file( '$rootDir/../..' )
manifest {
attributes(
'Main-Class': 'rusefi.GccMapReader'
)
}
}
run {
classpath = files( '$rootDir/../../../java_console_binary/rusefi_console.jar' )
}

View File

@ -1,28 +0,0 @@
<project default="jar">
<target name="clean">
<delete dir="build"/>
</target>
<target name="compile">
<mkdir dir="build/classes"/>
<javac destdir="build/classes" classpath="lib/junit.jar:lib/annotations.jar">
<src path="src/main/java"/>
</javac>
</target>
<target name="jar" depends="compile">
<mkdir dir="build/jar"/>
<jar destfile="../gcc_map_reader.jar" basedir="build/classes">
<manifest>
<attribute name="Main-Class" value="rusefi.GccMapReader"/>
</manifest>
<zipfileset dir="build/classes" includes="**/*.class"/>
</jar>
</target>
<target name="run" depends="jar">
<java jar="../java_console_binary/rusefi_console.jar" fork="true"/>
</target>
</project>