Skip to content

Commit

Permalink
Add support for releasing
Browse files Browse the repository at this point in the history
Run gradle release to generate a release version of THULAC.
To run the generated release version, navigate to release/ and run the following command:
java -jar thulac-1.0.jar -input <input_file> -output output.txt
And open output.txt to see the result.
(The input file and the models are not included in this repo yet, how to obtain these files is left as an exercise for the user.)
  • Loading branch information
std4453 committed Feb 27, 2017
1 parent 9ce41e0 commit 0a3c58b
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 7 deletions.
7 changes: 4 additions & 3 deletions .gitignore
@@ -1,4 +1,5 @@
models/
.idea/
tmp/
models
.idea
tmp
/src/test/resources/
release
25 changes: 21 additions & 4 deletions build.gradle
@@ -1,12 +1,29 @@
apply plugin: 'idea'
apply plugin: 'java'

repositories {
mavenLocal()
jcenter()
mavenCentral()
mavenLocal()
jcenter()
mavenCentral()
}

dependencies {
testCompile group: 'junit', name: 'junit', version: '4.+'
}

jar {
version '1.0'
manifest {
attributes("Main-Class": "org.thunlp.thulac.main.Main")
}
}

task release(dependsOn: 'jar') {
copy {
from 'build/libs'
into 'release'
}
copy {
from 'models'
into 'release/models'
}
}
1 change: 1 addition & 0 deletions settings.gradle
@@ -0,0 +1 @@
rootProject.name = 'thulac'

0 comments on commit 0a3c58b

Please sign in to comment.