From b117d3a9186795831295ee0426701c100a8065e4 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Sun, 20 Jul 2014 12:58:36 +0200 Subject: [PATCH] Add smack-java7 --- settings.gradle | 3 ++- smack-java7/build.gradle | 18 ++++++++++++++++++ .../jivesoftware/smack/SmackJava7Dummy.java | 16 ++++++++++++++++ 3 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 smack-java7/build.gradle create mode 100644 smack-java7/src/main/java/org/jivesoftware/smack/SmackJava7Dummy.java diff --git a/settings.gradle b/settings.gradle index eefb8bac3..21ac3fcea 100644 --- a/settings.gradle +++ b/settings.gradle @@ -9,4 +9,5 @@ include 'smack-core', 'smack-compression-jzlib', 'smack-legacy', 'smack-jingle', - 'smack-bosh' \ No newline at end of file + 'smack-bosh', + 'smack-java7' \ No newline at end of file diff --git a/smack-java7/build.gradle b/smack-java7/build.gradle new file mode 100644 index 000000000..16efa8d77 --- /dev/null +++ b/smack-java7/build.gradle @@ -0,0 +1,18 @@ +description = """\ +Smack for Java7 (or higher). +This is a pseudo-artifact that pulls all the required dependencies to +run Smack on Java 7 (or higher) JVMs. You can add further dependencies +like smack-bosh, run with a minimal subset by don't depending on +smack-java7, but using e.g. just smack-core, smack-tcp and +smack-resolver-javax""" + +dependencies { + compile project(":smack-core") + compile project(":smack-extensions") + compile project(":smack-tcp") + compile project(":smack-resolver-javax") +} + +javadoc { + enabled = false +} diff --git a/smack-java7/src/main/java/org/jivesoftware/smack/SmackJava7Dummy.java b/smack-java7/src/main/java/org/jivesoftware/smack/SmackJava7Dummy.java new file mode 100644 index 000000000..dc26a41ca --- /dev/null +++ b/smack-java7/src/main/java/org/jivesoftware/smack/SmackJava7Dummy.java @@ -0,0 +1,16 @@ +/** + * + * Copyright 2014 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. + */