mirror of https://github.com/rusefi/rusefi-1.git
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:
parent
af15a1bbe6
commit
636417140a
|
@ -11,3 +11,5 @@ include ':models'
|
||||||
project(':models').projectDir = new File('../java_console/models')
|
project(':models').projectDir = new File('../java_console/models')
|
||||||
include ':autoupdate'
|
include ':autoupdate'
|
||||||
project(':autoupdate').projectDir = new File('../java_console/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')
|
|
@ -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' )
|
||||||
|
}
|
|
@ -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>
|
|
Binary file not shown.
Loading…
Reference in New Issue