Develop and Download Open Source Software

Browse Subversion Repository

Contents of /flexmark-ext-highlight/trunk/build.gradle

Parent Directory Parent Directory | Revision Log Revision Log


Revision 111 - (show annotations) (download)
Sun May 30 05:45:57 2021 UTC (2 years, 9 months ago) by hirukawa_ryo
File size: 1581 byte(s)
* flexmark-ext-highlight 0.3.2
gradle 6.4 -> 7.0.2
jcenter -> mavenCentral
bintray upload 関連タスクを削除しました。
1 apply plugin: 'java'
2
3 group = 'net.osdn.blogs.flexmark.ext'
4 archivesBaseName = 'flexmark-ext-highlight'
5 version = '0.3.2'
6
7 tasks.withType(JavaCompile) {
8 sourceCompatibility = 1.8
9 targetCompatibility = 1.8
10 options.compilerArgs << '-Xlint:all'
11 }
12
13 def defaultEncoding = 'UTF-8'
14 tasks.withType(AbstractCompile).each { it.options.encoding = defaultEncoding }
15 tasks.withType(GroovyCompile).each { it.groovyOptions.encoding = defaultEncoding }
16
17 sourceSets.main.resources {
18 srcDirs = ['src/main/resources', 'src/main/java' ]
19 }
20
21 repositories {
22 mavenCentral()
23 }
24
25 dependencies {
26 implementation fileTree(dir: 'lib',
27 includes: ['**/*.jar'],
28 excludes: ['**/*-sources.jar', '**/*-javadoc.jar'])
29
30 implementation 'com.vladsch.flexmark:flexmark:0.62.2'
31 // implementation 'com.codewaves.codehighlight:codehighlight:1.0.2'
32 }
33
34 defaultTasks 'clean', 'build'
35
36 javadoc {
37 options.charSet = defaultEncoding
38 options.encoding = defaultEncoding
39 options.memberLevel = JavadocMemberLevel.PUBLIC
40 options.stylesheetFile = new File(rootDir, 'javadoc.css')
41 }
42
43 task sourcesJar(type: Jar, dependsOn: classes) {
44 setGroup('build')
45 setDescription('Assembles a jar archive containing the main source code.')
46 archiveClassifier.set("sources")
47 from sourceSets.main.allSource
48 duplicatesStrategy = DuplicatesStrategy.EXCLUDE
49 }
50
51 task javadocJar(type: Jar, dependsOn: javadoc) {
52 setGroup('documentation')
53 setDescription('Generates Javadoc API documentation as a jar archive.')
54 archiveClassifier.set("javadoc")
55 from javadoc.destinationDir
56 }

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26