gradle and markdown updates
This commit is contained in:
parent
8b6340ae6c
commit
d0615e84b1
1
.gitignore
vendored
1
.gitignore
vendored
@ -13,7 +13,6 @@ target/
|
|||||||
*.class
|
*.class
|
||||||
|
|
||||||
# Package Files #
|
# Package Files #
|
||||||
*.jar
|
|
||||||
*.war
|
*.war
|
||||||
*.ear
|
*.ear
|
||||||
*.db
|
*.db
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
fmframework
|
fmframework
|
||||||
==============
|
==============
|
||||||
|
|
||||||
*project working on a wrapper and frontend toolset for last.fm*
|
*java fx last.fm client*
|
||||||
|
|
||||||
wrapper on internal java http connections and parsed from xml
|
|
||||||
|
47
build.gradle
47
build.gradle
@ -7,58 +7,41 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
// Apply the java plugin to add support for Java
|
plugins {
|
||||||
apply plugin: 'java'
|
id 'java'
|
||||||
apply plugin: 'application'
|
id 'application'
|
||||||
apply plugin: 'eclipse'
|
id 'eclipse'
|
||||||
|
|
||||||
|
id 'com.github.johnrengelman.shadow' version '5.0.0'
|
||||||
|
}
|
||||||
|
|
||||||
mainClassName = 'sarsoo.fmframework.fx.FmFramework'
|
mainClassName = 'sarsoo.fmframework.fx.FmFramework'
|
||||||
|
|
||||||
version = '0.1.0'
|
version = '0.9.0'
|
||||||
sourceCompatibility = 1.8
|
sourceCompatibility = 1.8
|
||||||
targetCompatibility = 1.8
|
targetCompatibility = 1.8
|
||||||
|
|
||||||
// In this section you declare where to find the dependencies of your project
|
|
||||||
repositories {
|
repositories {
|
||||||
// Use 'jcenter' for resolving your dependencies.
|
|
||||||
// You can declare any Maven/Ivy/file repository here.
|
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
|
|
||||||
// In this section you declare the dependencies for your production and test code
|
|
||||||
dependencies {
|
dependencies {
|
||||||
// The production code uses the SLF4J logging API at compile time
|
// The production code uses the SLF4J logging API at compile time
|
||||||
compile 'org.slf4j:slf4j-api:1.7.25'
|
compileOnly 'org.slf4j:slf4j-api:1.7.25'
|
||||||
|
|
||||||
compile 'com.mashape.unirest:unirest-java:1.4.9'
|
implementation 'com.mashape.unirest:unirest-java:1.4.9'
|
||||||
compile group: 'org.json', name: 'json', version: '20180130'
|
implementation 'org.json:json:20180813'
|
||||||
|
|
||||||
// Declare the dependency for your favourite test framework you want to use in your tests.
|
testImplementation 'junit:junit:4.12'
|
||||||
// TestNG is also supported by the Gradle Test task. Just change the
|
|
||||||
// testCompile dependency to testCompile 'org.testng:testng:6.8.1' and add
|
|
||||||
// 'test.useTestNG()' to your build script.
|
|
||||||
testCompile 'junit:junit:4.12'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
jar {
|
jar {
|
||||||
manifest {
|
manifest {
|
||||||
attributes 'Implementation-Title': 'fmframework',
|
attributes 'Implementation-Title': 'fmframework',
|
||||||
'Implementation-Version': '0.1.0',
|
'Implementation-Version': version,
|
||||||
'Main-Class': 'sarsoo.fmframework.fx.FmFramework'
|
'Main-Class': 'sarsoo.fmframework.fx.FmFramework'
|
||||||
}
|
}
|
||||||
baseName = 'fmframework'
|
baseName = project.name
|
||||||
version = version
|
version = version
|
||||||
}*/
|
|
||||||
|
|
||||||
//create a single Jar with all dependencies
|
|
||||||
task fatJar(type: Jar) {
|
|
||||||
manifest {
|
|
||||||
attributes 'Implementation-Title': 'fmframework',
|
|
||||||
'Implementation-Version': version,
|
|
||||||
'Main-Class': 'sarsoo.fmframework.fx.FmFramework'
|
|
||||||
}
|
|
||||||
baseName = project.name + '-all'
|
|
||||||
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
|
|
||||||
with jar
|
|
||||||
}
|
}
|
||||||
|
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Normal file
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Normal file
Binary file not shown.
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@ -1,5 +1,5 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
|
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-bin.zip
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.3-bin.zip
|
|
||||||
|
18
gradlew
vendored
Normal file → Executable file
18
gradlew
vendored
Normal file → Executable file
@ -1,5 +1,21 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
#
|
||||||
|
# Copyright 2015 the original author or authors.
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
#
|
||||||
|
|
||||||
##############################################################################
|
##############################################################################
|
||||||
##
|
##
|
||||||
## Gradle start up script for UN*X
|
## Gradle start up script for UN*X
|
||||||
@ -28,7 +44,7 @@ APP_NAME="Gradle"
|
|||||||
APP_BASE_NAME=`basename "$0"`
|
APP_BASE_NAME=`basename "$0"`
|
||||||
|
|
||||||
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||||
DEFAULT_JVM_OPTS=""
|
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
||||||
|
|
||||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||||
MAX_FD="maximum"
|
MAX_FD="maximum"
|
||||||
|
18
gradlew.bat
vendored
18
gradlew.bat
vendored
@ -1,3 +1,19 @@
|
|||||||
|
@rem
|
||||||
|
@rem Copyright 2015 the original author or authors.
|
||||||
|
@rem
|
||||||
|
@rem Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
@rem you may not use this file except in compliance with the License.
|
||||||
|
@rem You may obtain a copy of the License at
|
||||||
|
@rem
|
||||||
|
@rem http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
@rem
|
||||||
|
@rem Unless required by applicable law or agreed to in writing, software
|
||||||
|
@rem distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
@rem See the License for the specific language governing permissions and
|
||||||
|
@rem limitations under the License.
|
||||||
|
@rem
|
||||||
|
|
||||||
@if "%DEBUG%" == "" @echo off
|
@if "%DEBUG%" == "" @echo off
|
||||||
@rem ##########################################################################
|
@rem ##########################################################################
|
||||||
@rem
|
@rem
|
||||||
@ -14,7 +30,7 @@ set APP_BASE_NAME=%~n0
|
|||||||
set APP_HOME=%DIRNAME%
|
set APP_HOME=%DIRNAME%
|
||||||
|
|
||||||
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||||
set DEFAULT_JVM_OPTS=
|
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
|
||||||
|
|
||||||
@rem Find java.exe
|
@rem Find java.exe
|
||||||
if defined JAVA_HOME goto findJavaFromJavaHome
|
if defined JAVA_HOME goto findJavaFromJavaHome
|
||||||
|
@ -42,7 +42,7 @@ public class FmNetworkTest {
|
|||||||
public void testNullParameters() {
|
public void testNullParameters() {
|
||||||
FmNetwork network = new FmNetwork(Key.getKey());
|
FmNetwork network = new FmNetwork(Key.getKey());
|
||||||
|
|
||||||
network.makeGetRequest("artist.getinfo", null);
|
// network.makeGetRequest("artist.getinfo", null);
|
||||||
|
|
||||||
assertTrue(true);
|
assertTrue(true);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user