Skip to content
This repository was archived by the owner on Mar 31, 2025. It is now read-only.

Commit 042e846

Browse files
authored
reordered
1 parent c6ee700 commit 042e846

1 file changed

Lines changed: 8 additions & 24 deletions

File tree

build.gradle

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/*
2+
* The MIT License (MIT)
3+
* Copyright (c) 2017 Sybit GmbH
4+
*
5+
* Permission is hereby granted, free of charge, to any person obtaining a copy
6+
*/
7+
18
/*
29
* Gets the version name from the latest Git tag
310
*/
@@ -14,12 +21,6 @@ def getVersionName = { ->
1421
return version;
1522
}
1623
}
17-
/*
18-
* The MIT License (MIT)
19-
* Copyright (c) 2017 Sybit GmbH
20-
*
21-
* Permission is hereby granted, free of charge, to any person obtaining a copy
22-
*/
2324

2425
buildscript {
2526
repositories {
@@ -79,23 +80,6 @@ dependencies {
7980
codacy group: 'com.codacy', name: 'codacy-coverage-reporter', version: '1.0.13'
8081
}
8182

82-
/*
83-
* Gets the version name from the latest Git tag
84-
*/
85-
def getVersionName = { ->
86-
try {
87-
def stdout = new ByteArrayOutputStream()
88-
exec {
89-
commandLine 'git', 'describe', '--tags'
90-
standardOutput = stdout
91-
}
92-
return stdout.toString().trim()
93-
}
94-
catch (ignored) {
95-
return version;
96-
}
97-
}
98-
9983
// custom tasks for creating source jar
10084
task sourcesJar(type: Jar, dependsOn: classes) {
10185
classifier = 'sources'
@@ -160,4 +144,4 @@ bintray {
160144
released = new Date()
161145
}
162146
}
163-
}
147+
}

0 commit comments

Comments
 (0)