Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create minidns-client, make minidns-core a pure functional core
Fixes #48.
- Loading branch information
Showing
87 changed files
with
87 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,5 @@ | ||
dependencies { | ||
testCompile "junit:junit:$junitVersion" | ||
compile project(':minidns-core') | ||
testCompile project(path: ":minidns-core", configuration: "testRuntime") | ||
testCompile project(path: ":minidns-core", configuration: "archives") | ||
} | ||
|
||
class CreateFileTask extends DefaultTask { | ||
@Input | ||
String fileContent | ||
|
||
@OutputFile | ||
File outputFile | ||
|
||
@TaskAction | ||
def createFile() { | ||
outputFile.text = fileContent | ||
} | ||
} | ||
|
||
task createVersionResource(type: CreateFileTask) { | ||
fileContent = version + ' (' + gitCommit + ' ' + builtDate + ')' | ||
outputFile = new File(projectDir, 'src/main/resources/de.measite.minidns/version') | ||
} | ||
|
||
compileJava.dependsOn(createVersionResource) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
dependencies { | ||
testCompile "junit:junit:$junitVersion" | ||
} | ||
|
||
class CreateFileTask extends DefaultTask { | ||
@Input | ||
String fileContent | ||
|
||
@OutputFile | ||
File outputFile | ||
|
||
@TaskAction | ||
def createFile() { | ||
outputFile.text = fileContent | ||
} | ||
} | ||
|
||
task createVersionResource(type: CreateFileTask) { | ||
fileContent = version + ' (' + gitCommit + ' ' + builtDate + ')' | ||
outputFile = new File(projectDir, 'src/main/resources/de.measite.minidns/version') | ||
} | ||
|
||
compileJava.dependsOn(createVersionResource) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters