Skip to content

Commit

Permalink
Added information to build jar task
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrer757 committed Jun 12, 2017
1 parent 76fa9ab commit c72a578
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 10 deletions.
17 changes: 15 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group 'com.massivedisaster.bintraydeployautomator.BintrayDeployAutomator'
version '1.0-SNAPSHOT'
group 'com.massivedisaster.bintraydeployautomator.Automator'
version '0.0.2'

apply plugin: 'java'

Expand All @@ -15,3 +15,16 @@ dependencies {
compile 'com.google.code.gson:gson:2.8.0'
runtime 'org.slf4j:slf4j-simple:1.7.10'
}

jar {
baseName 'BintrayDeployAutomator'

manifest {
attributes 'Main-Class': 'com.massivedisaster.bintraydeployautomator.Automator', 'version-number': version
}

from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}

}
3 changes: 0 additions & 3 deletions src/main/java/META-INF/MANIFEST.MF

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import com.massivedisaster.bintraydeployautomator.model.Configuration;
import com.massivedisaster.bintraydeployautomator.utils.FileUtils;
import com.massivedisaster.bintraydeployautomator.utils.GradleUtils;

import org.gradle.tooling.GradleConnector;
import org.gradle.tooling.ProjectConnection;

Expand All @@ -12,7 +11,7 @@
/**
* Bintray deploy automator.
*/
public class BintrayDeployAutomator extends FileUtils {
public class Automator extends FileUtils {

/**
* Main method.
Expand Down Expand Up @@ -40,7 +39,7 @@ public static void main(String args[]) {
}

} catch (Exception e) {
System.out.println("BintrayDeployAutomator Error: " + e.toString());
System.out.println("Automator Error: " + e.toString());
} finally {
if (gradleConnection != null) {
gradleConnection.close();
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package com.massivedisaster.bintraydeployautomator.annotations;

import java.lang.annotation.*;

@Documented
@Retention(RetentionPolicy.CLASS)
@Target({ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER, ElementType.LOCAL_VARIABLE})
public @interface NotNull {
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.massivedisaster.bintraydeployautomator.utils;

import com.sun.istack.internal.NotNull;
import com.massivedisaster.bintraydeployautomator.annotations.NotNull;

import java.io.IOException;
import java.io.PrintWriter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package com.massivedisaster.bintraydeployautomator.utils;

import com.sun.istack.internal.NotNull;

import com.massivedisaster.bintraydeployautomator.annotations.NotNull;
import org.gradle.tooling.ProjectConnection;

/**
Expand Down

0 comments on commit c72a578

Please sign in to comment.