Develop and Download Open Source Software

Browse Subversion Repository

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 107 - (hide annotations) (download)
Fri May 22 03:00:47 2020 UTC (3 years, 10 months ago) by hirukawa_ryo
File size: 2122 byte(s)
* flexmark-ext-highlight 0.3
flexmark 0.61.32 に追従しました。
flexmarkの仕様ころころと変わり過ぎです!
1 hirukawa_ryo 72 plugins {
2 hirukawa_ryo 107 id "com.jfrog.bintray" version "1.8.5"
3 hirukawa_ryo 72 }
4     apply plugin : 'maven-publish'
5    
6     apply plugin: 'java'
7    
8     group = 'net.osdn.blogs.flexmark.ext'
9     archivesBaseName = 'flexmark-ext-highlight'
10 hirukawa_ryo 107 version = '0.3'
11 hirukawa_ryo 72
12     tasks.withType(JavaCompile) {
13     sourceCompatibility = 1.7
14     targetCompatibility = 1.7
15 hirukawa_ryo 107 options.compilerArgs << '-Xlint:all'
16 hirukawa_ryo 72 }
17    
18     def defaultEncoding = 'UTF-8'
19     tasks.withType(AbstractCompile).each { it.options.encoding = defaultEncoding }
20     tasks.withType(GroovyCompile).each { it.groovyOptions.encoding = defaultEncoding }
21    
22     javadoc {
23     options.charSet = defaultEncoding
24     options.encoding = defaultEncoding
25     options.memberLevel = JavadocMemberLevel.PUBLIC
26     options.stylesheetFile = new File(rootDir, 'javadoc.css')
27     }
28    
29     repositories {
30     jcenter()
31     }
32    
33     dependencies {
34 hirukawa_ryo 107 implementation fileTree(dir: 'lib',
35 hirukawa_ryo 92 includes: ['**/*.jar'],
36     excludes: ['**/*-sources.jar', '**/*-javadoc.jar'])
37    
38 hirukawa_ryo 107 implementation 'com.vladsch.flexmark:flexmark:0.61.32'
39     // implementation 'com.codewaves.codehighlight:codehighlight:1.0.2'
40 hirukawa_ryo 72 }
41    
42     defaultTasks 'clean', 'build'
43    
44     task sourcesJar(type: Jar, dependsOn: classes) {
45     setGroup('build')
46     setDescription('Assembles a jar archive containing the main source code.')
47 hirukawa_ryo 101 archiveClassifier = 'sources'
48 hirukawa_ryo 72 from sourceSets.main.allSource
49     }
50    
51     task javadocJar(type: Jar, dependsOn: javadoc) {
52     setGroup('documentation')
53     setDescription('Generates Javadoc API documentation as a jar archive.')
54 hirukawa_ryo 101 archiveClassifier = 'javadoc'
55 hirukawa_ryo 72 from javadoc.destinationDir
56     }
57    
58     // For Bintray maven repository
59     // Use publishing -> bintrayUpload task.
60    
61     artifacts {
62     archives sourcesJar
63     archives javadocJar
64     }
65    
66     publishing {
67     publications {
68     mavenJava(MavenPublication) {
69     from components.java
70     artifact sourcesJar
71     artifact javadocJar
72     }
73     }
74     }
75     bintray {
76     user = System.getenv('BINTRAY_USER')
77     key = System.getenv('BINTRAY_KEY')
78    
79     publications = ['mavenJava']
80    
81     pkg {
82     repo = 'maven'
83     name = 'flexmark-ext-highlight'
84     licenses = ['BSD 2-Clause']
85     vcsUrl = 'https://svn.osdn.net/svnroot/blogs/flexmark-ext-highlight'
86     }
87     }

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