plugins { id 'java' } group 'com.ljsd' sourceCompatibility = 1.8 repositories { mavenLocal() mavenCentral() } dependencies { testCompile group: 'junit', name: 'junit', version: '4.12' compile group: 'com.googlecode.protobuf-java-format', name: 'protobuf-java-format', version: '1.2' compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25' compile("com.google.protobuf:protobuf-java:2.5.0") } jar { baseName = 'gamecommon' }