Skip to content

Commit fe13696

Browse files
author
infeo
committed
Merge branch 'release/1.0.0'
2 parents 266aefb + 72861da commit fe13696

File tree

13 files changed

+203
-93
lines changed

13 files changed

+203
-93
lines changed

.idea/encodings.xml

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.gradle

Lines changed: 98 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
/*
22
* This file was generated by the Gradle 'init' task.
33
*
4-
* This generated file contains a sample Java Library project to get you started.
5-
* For more details take a look at the Java Libraries chapter in the Gradle
6-
* user guide available at https://docs.gradle.org/4.10.2/userguide/java_library_plugin.html
4+
* It describes how to build the dokan-java project.
5+
* In order to be able to build then library one must define the gradle properties "bintrayUser" and "bintrayApiKey" in your ~/.gradle/gradle.properties file with some random values
6+
*
7+
* To publish to the local Maven repository, execute 'gradle publishToMavenLocal'
78
*/
89

910
plugins {
1011
// Apply the java-library plugin to add support for Java Library
1112
id 'java-library'
13+
id 'maven-publish'
14+
id 'com.jfrog.bintray' version '1.8.4'
1215
}
1316

1417
dependencies {
@@ -31,21 +34,102 @@ repositories {
3134
jcenter()
3235
}
3336

34-
jar {
35-
manifest {
36-
attributes('Implementation-Title': project.name,
37-
'Implementation-Version': project.version)
38-
}
39-
}
4037

41-
task printProps {
42-
doLast {
43-
println version
44-
println maintainer
45-
println System.properties['system']
38+
bintray{
39+
user = bintrayUser
40+
key = bintrayApiKey
41+
publications = ['release']
42+
pkg {
43+
version {
44+
name = project.version
45+
desc = project.description
46+
released = new Date()
47+
vcsTag = project.version
48+
gpg {
49+
sign = true
50+
}
51+
}
52+
repo = 'maven'
53+
name = project.name
54+
licenses = ['LGPL-3.0']
55+
vcsUrl = scmUrl
56+
4657
}
4758
}
4859

4960
test {
5061
useJUnitPlatform()
5162
}
63+
64+
task sourcesJar(type: Jar) {
65+
classifier = 'sources'
66+
from sourceSets.main.allJava
67+
}
68+
69+
task javadocJar(type: Jar) {
70+
classifier = 'javadoc'
71+
from javadoc.destinationDir
72+
}
73+
74+
task showBintrayInfo() {
75+
description 'Shows your system bintray credentials'
76+
group 'bintray'
77+
doLast() {
78+
println bintrayUser
79+
print bintrayApiKey
80+
}
81+
}
82+
83+
tasks {
84+
jar {
85+
manifest {
86+
attributes(
87+
'Implementation-Title': project.name,
88+
'Implementation-Version': project.version,
89+
'Specification-Title': 'Java Wrapper for Dokany',
90+
'Specification-Version': project.version,
91+
)
92+
}
93+
}
94+
}
95+
96+
def pomConfig = {
97+
licenses {
98+
license {
99+
name licenseName
100+
url licenseUrl
101+
distribution "repo"
102+
}
103+
}
104+
105+
developers {
106+
developer {
107+
id maintainerId
108+
name maintainer
109+
email maintainerMail
110+
timezone '+1'
111+
}
112+
}
113+
114+
scm {
115+
url scmUrl
116+
}
117+
}
118+
119+
publishing {
120+
publications {
121+
release(MavenPublication) {
122+
from components.java
123+
groupId group
124+
artifact sourcesJar
125+
artifact javadocJar
126+
pom.withXml {
127+
def root = asNode()
128+
root.appendNode('description', project.description)
129+
root.appendNode('name', project.name)
130+
root.appendNode('url', scmUrl)
131+
root.children().last() + pomConfig
132+
}
133+
}
134+
}
135+
}

dokan-java.iml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<module external.linked.project.id="dokan-java" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="'com.dokan'" external.system.module.version="'0.1.0'" type="JAVA_MODULE" version="4">
2+
<module external.linked.project.id="dokan-java" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="com.dokan" external.system.module.version="1.0.0-SNAPSHOT" type="JAVA_MODULE" version="4">
33
<component name="NewModuleRootManager" inherit-compiler-output="true">
44
<exclude-output />
55
<content url="file://$MODULE_DIR$">

gradle.properties

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
1-
version='0.1.0'
2-
group='com.dokan'
1+
version=1.0.0
2+
group=com.dokan
3+
description=A Java wrapper for Dokany (https://dokan-dev.github.io/)
34

4-
maintainer='Armin Schrenk'
5+
scmUrl=https://github.com/dokan-dev/dokan-java
56

7+
#maintainer
8+
maintainer=Armin Schrenk
9+
maintainerId=infeo
10+
maintainerMail=[email protected]
11+
12+
#license
13+
licenseName=GNU Lesser General Public License, Version 3.0
14+
licenseUrl=https://www.gnu.org/licenses/lgpl-3.0.en.html
15+
16+
#lib versions
617
jnaVersion=5.0.0
718
guavaVersion=27.0-jre
819
slf4jVersion=1.7.25
@@ -19,7 +30,7 @@ org.gradle.console=rich
1930
#logging level
2031
org.gradle.logging.level=lifecycle
2132
#more than one jvm is spawned to build several projects in parallel
22-
org.gradle.parallel=ture
33+
org.gradle.parallel=true
2334

2435
#passing systemproperties to jvm with systemProp
2536
#systemProp.waffle=waffle

gradle/wrapper/gradle-wrapper.jar

-436 Bytes
Binary file not shown.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
#Sun Nov 25 18:23:35 CET 2018
21
distributionBase=GRADLE_USER_HOME
32
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.0-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip

gradlew

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ APP_NAME="Gradle"
2828
APP_BASE_NAME=`basename "$0"`
2929

3030
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
31-
DEFAULT_JVM_OPTS=""
31+
DEFAULT_JVM_OPTS='"-Xmx64m"'
3232

3333
# Use the maximum available, or set MAX_FD != -1 to use that value.
3434
MAX_FD="maximum"

gradlew.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ set APP_BASE_NAME=%~n0
1414
set APP_HOME=%DIRNAME%
1515

1616
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
17-
set DEFAULT_JVM_OPTS=
17+
set DEFAULT_JVM_OPTS="-Xmx64m"
1818

1919
@rem Find java.exe
2020
if defined JAVA_HOME goto findJavaFromJavaHome

0 commit comments

Comments
 (0)