Skip to content

Commit 6b2acd9

Browse files
author
Artur Artikov
committed
Fix dependency in publishing
1 parent 46756ae commit 6b2acd9

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Code Quality for Android
2-
[![Maven Central](https://img.shields.io/maven-central/v/ru.mobileup/rxpagingloading)](https://repo1.maven.org/maven2/ru/mobileup/rxpagingloading)[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
2+
[![Maven Central](https://img.shields.io/maven-central/v/ru.mobileup/code-quality-android)](https://repo1.maven.org/maven2/ru/mobileup/code-quality-android) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
33

44
Gradle Plugin for integration of code quality tools with Gitlab CI.
55
It converts Detekt and Lint reports to compatible with [Gitlab Code Quality](https://docs.gitlab.com/ee/user/project/merge_requests/code_quality.html) format.
@@ -16,7 +16,7 @@ buildscript {
1616
1717
dependencies {
1818
...
19-
classpath 'ru.mobileup:code-quality-android:1.0.0'
19+
classpath 'ru.mobileup:code-quality-android:1.0.1'
2020
}
2121
}
2222
```

publish.gradle

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ apply plugin: 'signing'
1414
ext {
1515
PUBLISH_GROUP_ID = 'ru.mobileup'
1616
PUBLISH_ARTIFACT_ID = 'code-quality-android'
17-
PUBLISH_VERSION = '1.0.0'
17+
PUBLISH_VERSION = '1.0.1'
1818
DESCRIPTION = 'Gradle plugin for integration with Gitlab Code Quality'
1919

2020
GITHUB_USER = 'MobileUpLLC'
@@ -115,10 +115,12 @@ publishing {
115115
def dependenciesNode = asNode().appendNode('dependencies')
116116

117117
project.configurations.implementation.allDependencies.each {
118-
def dependencyNode = dependenciesNode.appendNode('dependency')
119-
dependencyNode.appendNode('groupId', it.group)
120-
dependencyNode.appendNode('artifactId', it.name)
121-
dependencyNode.appendNode('version', it.version)
118+
if (it.name != 'unspecified') {
119+
def dependencyNode = dependenciesNode.appendNode('dependency')
120+
dependencyNode.appendNode('groupId', it.group)
121+
dependencyNode.appendNode('artifactId', it.name)
122+
dependencyNode.appendNode('version', it.version)
123+
}
122124
}
123125
}
124126
}

0 commit comments

Comments
 (0)