Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
matrix-android-sdk
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Circles
matrix-android-sdk
Commits
cf1f10aa
Commit
cf1f10aa
authored
3 years ago
by
Taras
Browse files
Options
Downloads
Patches
Plain Diff
Add sources jar
parent
2df0327e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
matrix-sdk-android/gradle-publish.gradle
+12
-12
12 additions, 12 deletions
matrix-sdk-android/gradle-publish.gradle
with
12 additions
and
12 deletions
matrix-sdk-android/gradle-publish.gradle
+
12
−
12
View file @
cf1f10aa
apply
plugin:
'
java
'
apply
plugin:
'
com.android.library
'
apply
plugin:
'maven-publish'
apply
plugin:
'maven-publish'
def
groupIdString
=
"org.matrix.android"
def
groupIdString
=
"org.matrix.android"
...
@@ -9,6 +9,11 @@ def publicationName = "release"
...
@@ -9,6 +9,11 @@ def publicationName = "release"
def
projectId
=
"16"
def
projectId
=
"16"
def
token
=
"e3yxa-_Duy7xLabSa7_z"
def
token
=
"e3yxa-_Duy7xLabSa7_z"
task
sourceJar
(
type:
Jar
)
{
from
android
.
sourceSets
.
main
.
java
.
srcDirs
classifier
=
"sources"
}
publishing
{
publishing
{
publications
{
publications
{
"$publicationName"
(
MavenPublication
)
{
"$publicationName"
(
MavenPublication
)
{
...
@@ -16,17 +21,16 @@ publishing {
...
@@ -16,17 +21,16 @@ publishing {
artifactId
artifactIdString
artifactId
artifactIdString
version
versionName
version
versionName
artifact
artifactPath
artifact
artifactPath
artifact
sourceJar
// To include project dependencies
// To include project dependencies
pom
.
withXml
{
pom
.
withXml
{
def
dependencies
=
asNode
().
appendNode
(
'dependencies'
)
def
dependencies
=
asNode
().
appendNode
(
'dependencies'
)
configurations
.
implementation
.
allDependencies
.
each
{
configurations
.
getByName
(
"${publicationName}CompileClasspath"
).
getResolvedConfiguration
().
getFirstLevelModuleDependencies
().
each
{
if
(
it
.
group
!=
null
)
{
def
dependency
=
dependencies
.
appendNode
(
'dependency'
)
def
dependency
=
dependencies
.
appendNode
(
'dependency'
)
dependency
.
appendNode
(
'groupId'
,
it
.
moduleGroup
)
dependency
.
appendNode
(
'groupId'
,
it
.
moduleGroup
)
dependency
.
appendNode
(
'artifactId'
,
it
.
moduleName
)
dependency
.
appendNode
(
'artifactId'
,
it
.
moduleName
)
dependency
.
appendNode
(
'version'
,
it
.
moduleVersion
)
dependency
.
appendNode
(
'version'
,
it
.
moduleVersion
)
}
}
}
}
}
}
}
...
@@ -44,8 +48,4 @@ publishing {
...
@@ -44,8 +48,4 @@ publishing {
}
}
}
}
}
}
}
java
{
sourceCompatibility
=
JavaVersion
.
VERSION_11
targetCompatibility
=
JavaVersion
.
VERSION_11
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment