Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
CreatureChat
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
Public
CreatureChat
Commits
682afc73
Commit
682afc73
authored
Feb 15, 2019
by
UpcraftLP
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add javadoc task and maven-publish plugin
parent
133913f4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
0 deletions
+47
-0
build.gradle
build.gradle
+47
-0
No files found.
build.gradle
View file @
682afc73
plugins
{
id
'fabric-loom'
version
'0.2.0-SNAPSHOT'
id
'maven-publish'
}
sourceCompatibility
=
JavaVersion
.
VERSION_1_8
...
...
@@ -35,3 +36,49 @@ task sourcesJar(type: Jar, dependsOn: classes) {
classifier
=
'sources'
from
sourceSets
.
main
.
allSource
}
// create a javadoc file for publishing
task
javadocJar
(
type:
Jar
,
dependsOn:
javadoc
)
{
from
javadoc
.
destinationDir
from
"LICENSE"
classifier
=
"javadoc"
}
// make the javadoc tool be more lenient when using Java 8
// this fixes the javadoc tool breaking on things like self-closed <br /> tags
// see https://blog.joda.org/2014/02/turning-off-doclint-in-jdk-8-javadoc.html
if
(
JavaVersion
.
current
().
isJava8Compatible
())
{
allprojects
{
tasks
.
withType
(
Javadoc
)
{
options
.
addStringOption
(
'Xdoclint:none'
,
'-quiet'
)
}
}
}
jar
{
from
"LICENSE"
}
// configure the maven publication
publishing
{
publications
{
mavenJava
(
MavenPublication
)
{
// add all the jars that should be included when publishing to maven
artifact
jar
artifact
javadocJar
artifact
sourcesJar
}
}
// select the repositories you want to publish to
repositories
{
// uncomment to publish to the local maven
// mavenLocal()
}
}
// make sure that jars are properly remapped before uploading
tasks
.
publish
.
dependsOn
build
tasks
.
build
.
dependsOn
javadocJar
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment