zoukankan      html  css  js  c++  java
  • 新建gradle文件

    按照新建自动步骤,建好文件后,在build-gradle 里面

    写上:

    allprojects {
    group 'aaaa'
    version '1.0-SNAPSHOT'
    apply plugin: 'java'
    apply plugin: 'maven'
    apply plugin: 'scala'
    apply plugin: 'eclipse'

    sourceCompatibility = 1.8
    }




    subprojects {
    [compileJava, compileTestJava, javadoc]*.options*.encoding = 'UTF-8'
    repositories {
    mavenCentral()
    }

    dependencies {
    testCompile group: 'junit', name: 'junit', version: '4.12'
    // https://mvnrepository.com/artifact/org.scalanlp/breeze-viz_2.10
    compile group: 'org.scalanlp', name: 'breeze-viz_2.10', version: '0.11.2'

    // scala
    compile group: 'org.scala-lang', name: 'scala-library', version: '2.10.4'

    compile(group: 'org.apache.spark', name: 'spark-mllib_2.11', version: '2.3.0') {
    exclude group: 'javax.servlet'//, module: 'servl et-api'
    exclude group: 'io.netty'//, module: 'servlet-api'
    }
    }
    }

    ,然后接受右上角的建议更新内容。

    新建文件中没有src问题:

    1、右键点击初始模块名字,new-module(起名 a)
    2、右键新建的module(a),new-directory(起名:src)
    3、右键src,new-directory(起名main)
    4、右键main,new-module(起名:java,scala)
  • 相关阅读:
    Luogu-P2295 MICE
    Luogu-P2627 修剪草坪
    Loj-10176-最大连续和
    Luogu-P1886 滑动窗口
    Luogu-P3807 【模板】卢卡斯定理
    Luogu-P1879 [USACO06NOV]玉米田Corn Fields
    Luogu-P1896 [SCOI2005]互不侵犯
    Loj-SGU 223-国王
    Luogu-P2657 [SCOI2009]windy数
    素数
  • 原文地址:https://www.cnblogs.com/zhangbojiangfeng/p/9642441.html
Copyright © 2011-2022 走看看