Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>ru.mail.track</groupId>
<artifactId>messenger</artifactId>
<version>1.0-SNAPSHOT</version>
D:\Problems\_technotrack\1sem\java\technotrack-mail-java-1sem>mvn exec:exec -DServer
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for ru.mail.track:messenger:jar:1.0-SNAPSHOT
[WARNING] 'dependencies.dependency.systemPath' for com.oracle:ojdbc:jar should not point at files within the project directory, ${basedir}/lib/ojdbc6.jar will be unresolvable by depe
ndent projects @ line 104, column 25
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
D:\Problems\_technotrack\1sem\java\technotrack-mail-java-1sem>mvn compile
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for ru.mail.track:messenger:jar:1.0-SNAPSHOT
[WARNING] 'dependencies.dependency.systemPath' for com.oracle:ojdbc:jar should not point at files within the project directory, ${basedir}/lib/ojdbc6.jar will be unresolvable by depe
ndent projects @ line 104, column 25
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
@IvanShafran
IvanShafran / kotlin-compiler-apiVersion-and-languageVersion.gradle
Last active May 10, 2019 18:06
Kotlin compiler flags: apiVersion and languageVersion
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
apiVersion = "1.2"
languageVersion = "1.2"
}
}
class Sample {
companion object {
@JvmField
val INSTANCE = Sample()
}
}
public class DependencyChecker {
public static void check() throws ClassNotFoundException {
try {
// Intrinsics exists in all std-lib versions
Class.forName("kotlin.jvm.internal.Intrinsics");
} catch (ClassNotFoundException e) {
throw new ClassNotFoundException("Library depends on Kotlin std-lib.\n" +
"Add to dependencies: org.jetbrains.kotlin:kotlin-stdlib:1.3.31"
);
}
class Sample {
companion object {
init {
DependencyChecker.check()
}
}
}
# Sign key alias for contributors.jks
releaseSignKeyAlias=key
# Sign key password for contributors.jks
releaseSignKeyPassword=password
# Path to contributors.jks
releaseStoreFilePath=./contributors.jks
# Keystore password for contributors.jks
releaseStorePassword=password
...
apply from: 'signing.gradle'
...
android {
...
buildTypes {
release {
signingConfig signingConfigs.release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
def propertiesFilename = "production.properties"
if (!project.file(propertiesFilename).exists()) {
propertiesFilename = "contributors.properties"
}
def signingProperties = new Properties()
signingProperties.load(new FileInputStream(file(propertiesFilename)))
android {
signingConfigs {